<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Logging issues]]></title><description><![CDATA[<p dir="auto">I’m having trouble with logging issues again - and want to get some feedback on why and how it’s not working -</p>
<p dir="auto">Trying to get a module (MMM-pages) to work the way I want it to - and notice in the code that it’s using <code> Log.warn</code> to try and log errors and whatnot.</p>
<p dir="auto">I’m launching MM with pm2, in a server/client enviroment.</p>
<p dir="auto">PM2 logs show nothing from this module, either on the server or the client.</p>
<p dir="auto">my config.js has log level set at <code>logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"],</code></p>
<p dir="auto">where is this actually logging to?</p>
]]></description><link>https://forum.magicmirror.builders/topic/19504/logging-issues</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 16:01:16 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19504.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Mar 2025 22:37:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Logging issues on Sun, 09 Mar 2025 20:58:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> It now is working as expected. Thanks for the help.</p>
]]></description><link>https://forum.magicmirror.builders/post/124708</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124708</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sun, 09 Mar 2025 20:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sun, 09 Mar 2025 15:58:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> did you changepage?  it didn’t set active ,but started, now sets active</p>
<p dir="auto">new git pull</p>
<p dir="auto">I put it in manual mode (rotationTime:0,)<br />
and it also works as expected</p>
]]></description><link>https://forum.magicmirror.builders/post/124665</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124665</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 09 Mar 2025 15:58:20 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 22:21:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> did you log that?</p>
<p dir="auto">doing pause-rotation?</p>
]]></description><link>https://forum.magicmirror.builders/post/124662</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124662</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 08 Mar 2025 22:21:10 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 21:51:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> OK. It’s now changing pages correctly, but it will resume rotation if pause is already set and you request it again.</p>
]]></description><link>https://forum.magicmirror.builders/post/124661</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124661</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sat, 08 Mar 2025 21:51:53 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 04:08:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> git pull when you have time</p>
]]></description><link>https://forum.magicmirror.builders/post/124650</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124650</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 08 Mar 2025 04:08:54 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 02:22:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a>  yeh, but parseInt stops if it sees a non numeric, but doesn’t fail</p>
<p dir="auto">so 1234test returns 1234</p>
<p dir="auto">which is incomplete</p>
<p dir="auto">such was my comment about what to do</p>
]]></description><link>https://forum.magicmirror.builders/post/124649</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124649</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 08 Mar 2025 02:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 02:07:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Yeah, I was looking into the code myself.</p>
<p dir="auto">Maybe a re-write to see if it’s a string, then parseint(this.curPage) - and if it’s not NaN, run it?</p>
]]></description><link>https://forum.magicmirror.builders/post/124648</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124648</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sat, 08 Mar 2025 02:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 02:01:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> yes, i know, i sent a notification with a string and it crashed. so i added a check, its NOT  supposed to be a string<br />
but ive got to figure out how to deal with that</p>
]]></description><link>https://forum.magicmirror.builders/post/124647</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124647</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 08 Mar 2025 02:01:36 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 01:52:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> FWIW, it worked before the latest changes, just didn’t pause as requested.</p>
]]></description><link>https://forum.magicmirror.builders/post/124646</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124646</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sat, 08 Mar 2025 01:52:59 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 00:50:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> ok, will look at what to do</p>
]]></description><link>https://forum.magicmirror.builders/post/124645</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124645</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 08 Mar 2025 00:50:56 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Sat, 08 Mar 2025 00:41:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>  it’s through MMM-Remote-Control - the curl statements above is what is sent to trigger.</p>
]]></description><link>https://forum.magicmirror.builders/post/124644</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124644</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Sat, 08 Mar 2025 00:41:04 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 22:18:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> can you show me the actual request for page 0</p>
<p dir="auto">its a number,  0 , not a string “0” or ‘0’</p>
]]></description><link>https://forum.magicmirror.builders/post/124632</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124632</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Mar 2025 22:18:28 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 21:18:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> – Pausing is working perfectly, but we moved the bug elsewhere.</p>
<pre><code>[MMM-pages] received a notification to change to page 0 of type string.
MMM-pages.js:192 [MMM-pages] cannot change to a named page 0'
updatePages	@	MMM-pages.js:192
notificationReceived	@	MMM-pages.js:102
sendNotification	@	main.js:99
sendNotification	@	main.js:649
sendNotification	@	module.js:350
socketNotificationReceived	@	MMM-Remote-Control.js:159
(anonymous)	@	module.js:240
(anonymous)	@	socketclient.js:32
Emitter.emit	@	index.js:136
emitEvent	@	socket.js:553
onevent	@	socket.js:540
MMSocket.socket.onevent	@	socketclient.js:26
onpacket	@	socket.js:508
Emitter.emit	@	index.js:136
(anonymous)	@	manager.js:217
Promise.then		
(anonymous)	@	globals.js:4
ondecoded	@	manager.js:216
Emitter.emit	@	index.js:136
add	@	index.js:142
ondata	@	manager.js:203
Emitter.emit	@	index.js:136
_onPacket	@	socket.js:259
Emitter.emit	@	index.js:136
onPacket	@	transport.js:99
onData	@	transport.js:91
</code></pre>
<pre><code>curl -X GET http://mirrorserv:8080/api/notification/PAGE_CHANGED/0
curl -X GET http://mirrorserv:8080/api/notification/PAUSE_ROTATION/
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/124630</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124630</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 07 Mar 2025 21:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 15:37:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> git pull for update<br />
I think you can set page (will resume rotation)<br />
then immediately (or before rotationTime) pauseRotation</p>
]]></description><link>https://forum.magicmirror.builders/post/124623</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124623</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Mar 2025 15:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 04:38:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Got message - nothing critical, as usual. and if you have a better way to set page &amp; pause (stop), then later resuming (start) the rotation, I’m all ears.</p>
<p dir="auto">For reference, same configuration as before.</p>
]]></description><link>https://forum.magicmirror.builders/post/124616</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124616</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 07 Mar 2025 04:38:24 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 04:05:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> sent message</p>
]]></description><link>https://forum.magicmirror.builders/post/124615</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124615</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Mar 2025 04:05:41 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 03:37:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> While this is broken up to explain what is sent where, there’s no lines in between other than the diagnostics on the error for “already paused”</p>
<p dir="auto">Sent: curl -X GET <a href="http://mirrorserv:8080/api/notification/PAGE_CHANGED/0" target="_blank" rel="noopener noreferrer nofollow ugc">http://mirrorserv:8080/api/notification/PAGE_CHANGED/0</a></p>
<pre><code>[MMM-pages] received a notification to change to page 0 of type string. 
module.js:189 MMM-pages is suspended.
module.js:189 MMM-CalendarExt3Agenda is suspended.
module.js:189 MMM-OpenWeatherForecast is suspended.
module.js:189 MMM-CalendarExt3 is suspended.
module.js:196 alert is resumed.
module.js:196 calendar is resumed.
module.js:196 MMM-Remote-Control is resumed.
module.js:196 clock is resumed.
module.js:196 MMM-Worldclock is resumed.
module.js:196 MMM-Wallpaper is resumed.
module.js:196 MMM-CalendarExt3 is resumed.
module.js:196 MMM-CalendarExt3Agenda is resumed.
module.js:196 MMM-Multimonth is resumed.
</code></pre>
<p dir="auto">Sent: curl -X GET <a href="http://mirrorserv:8080/api/notification/PAUSE_ROTATION/" target="_blank" rel="noopener noreferrer nofollow ugc">http://mirrorserv:8080/api/notification/PAUSE_ROTATION/</a></p>
<pre><code>MMM-pages.js:311 [MMM-pages] pausing rotation
</code></pre>
<p dir="auto">Sent: curl -X GET <a href="http://mirrorserv:8080/api/notification/PAGE_CHANGED/2" target="_blank" rel="noopener noreferrer nofollow ugc">http://mirrorserv:8080/api/notification/PAGE_CHANGED/2</a></p>
<pre><code>[MMM-pages] received a notification to change to page 2 of type string.
module.js:189 MMM-pages is suspended.
module.js:189 MMM-CalendarExt3Agenda is suspended.
3module.js:189 MMM-Multimonth is suspended.
module.js:189 MMM-CalendarExt3Agenda is suspended.
module.js:189 MMM-CalendarExt3 is suspended.
module.js:196 alert is resumed.
module.js:196 calendar is resumed.
module.js:196 MMM-Remote-Control is resumed.
module.js:196 clock is resumed.
module.js:196 MMM-Worldclock is resumed.
module.js:196 MMM-Wallpaper is resumed.
module.js:196 MMM-CalendarExt3 is resumed.
module.js:196 MMM-OpenWeatherForecast is resumed.
</code></pre>
<p dir="auto">Sent: curl -X GET <a href="http://mirrorserv:8080/api/notification/PAUSE_ROTATION/" target="_blank" rel="noopener noreferrer nofollow ugc">http://mirrorserv:8080/api/notification/PAUSE_ROTATION/</a></p>
<pre><code>MMM-pages.js:309 [MMM-pages] was asked to pause but rotation is already paused!
MMM-pages.js:100 [MMM-pages] received a notification to increment pages!
module.js:189 MMM-pages is suspended.
</code></pre>
<p dir="auto">etc.</p>
<p dir="auto">The diagnostics:</p>
<pre><code>MMM-pages.js:309 [MMM-pages] was asked to pause but rotation is already paused!
setRotation	@	MMM-pages.js:309
notificationReceived	@	MMM-pages.js:123
sendNotification	@	main.js:99
sendNotification	@	main.js:649
sendNotification	@	module.js:350
socketNotificationReceived	@	MMM-Remote-Control.js:159
(anonymous)	@	module.js:240
(anonymous)	@	socketclient.js:32
Emitter.emit	@	index.js:136
emitEvent	@	socket.js:553
onevent	@	socket.js:540
MMSocket.socket.onevent	@	socketclient.js:26
onpacket	@	socket.js:508
Emitter.emit	@	index.js:136
(anonymous)	@	manager.js:217
Promise.then		
(anonymous)	@	globals.js:4
ondecoded	@	manager.js:216
Emitter.emit	@	index.js:136
add	@	index.js:142
ondata	@	manager.js:203
Emitter.emit	@	index.js:136
_onPacket	@	socket.js:259
Emitter.emit	@	index.js:136
onPacket	@	transport.js:99
onData	@	transport.js:91
ws.onmessage	@	websocket.js:48
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/124614</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124614</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 07 Mar 2025 03:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 02:18:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> i looked thru the code and dont SEE a path where pause while paused restarts, but i will test later tonight</p>
<p dir="auto">can you show any part of what you logged?</p>
]]></description><link>https://forum.magicmirror.builders/post/124613</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124613</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Mar 2025 02:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 00:42:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> module doesn’t know its position (or lack thereof)<br />
it signals updateDom() which calls getDom()<br />
oops no place to put it. oh well</p>
<p dir="auto">hidden pages stop rotation</p>
<p dir="auto"><img src="/assets/uploads/files/1741307985949-img_0832.png" alt="IMG_0832.png" class=" img-fluid img-markdown" /> .</p>
<p dir="auto">i think it says that ‘not in the normal rotation’</p>
<p dir="auto">pause while paused restarts is a bug i think, will review<br />
as i just fixed that area too</p>
]]></description><link>https://forum.magicmirror.builders/post/124611</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124611</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 07 Mar 2025 00:42:18 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Fri, 07 Mar 2025 00:02:29 GMT]]></title><description><![CDATA[<p dir="auto">Ended up loading it up on my PC to get the console.</p>
<p dir="auto">So, here’s what I got…</p>
<ol>
<li>Apparently, MMM-pages will resume the rotation if you tell it to pause, but it’s already paused.</li>
<li>It should be documented that MMM-pages will pause as part of the hidden pages routine.</li>
</ol>
<hr />
<p dir="auto">While I was looking and debugging</p>
<p dir="auto">Out of curiosity, why would calendar try to update the DOM without being given a location to display</p>
]]></description><link>https://forum.magicmirror.builders/post/124610</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124610</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 07 Mar 2025 00:02:29 GMT</pubDate></item><item><title><![CDATA[Reply to Logging issues on Thu, 06 Mar 2025 23:24:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> browser side goes to the browser console , which you can see in the developers window, console tab (how i debugged your recent problem)<br />
pm2 only sees the stdout/stderr consoles (so only from node_helpers log. or console.)</p>
<p dir="auto">so to  merge them together you would use<br />
MMM-Logging or MMM-LogExt<br />
then all the messages are logged in the stdout/err console</p>
<p dir="auto">i extended logging, MMRIZE did LogExt</p>
<p dir="auto">logLevel decides which messages print</p>
]]></description><link>https://forum.magicmirror.builders/post/124608</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/124608</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 06 Mar 2025 23:24:15 GMT</pubDate></item></channel></rss>