log.debug not working after accidental upgrade to 5.0.0

35 views
Skip to first unread message

morr...@gmail.com

unread,
Jul 7, 2024, 12:12:40 PMJul 7
to weewx-development
I've been malingering in keeping up with weewx development. I accidentally did a global upgrade to my debian system, which upgraded weewx to 5.0.0, and am being punished for my sins.

Enough changed that my custom driver isn't working anymore. I went into /etc/weewx/weewx.conf and set
debug = 1

But I am not getting log entries from this code:
def on_message(self, client, userdata, msg):
self.payloadQueue.put(msg.payload.decode('utf-8'))
log.debug("Added to queue of %d message %s" % (self.payloadQueue.qsize(), msg.payload))


Has something changed in how we set logging levels?

If I change log.debug to log.info, I do see messages like

Jul  7 13:10:39  weewxd[3741587]: INFO user.wxMesh: Added to queue of 2 message b'{"TIME":2568552,"INTE":22.230354,"INHU":55.553955}'


Tom Keffer

unread,
Jul 7, 2024, 11:29:27 PMJul 7
to morr...@gmail.com, weewx-development
V5.0.0 had a bug that prevented debug statements from being logged. See commit 2180853.

Plus, it had a serious bug that can cause system damage when installing and removing extensions. You really should upgrade to V5.1.0.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/910d929d-a951-43da-b922-44ab11818838n%40googlegroups.com.

morr...@gmail.com

unread,
Jul 8, 2024, 9:11:39 AMJul 8
to weewx-development
I upgraded using the debian apt method, reconfigured my specifics in weewx.conf, and it's all working correctly now. Thank you for the prompt reply and excellent documentation.
Reply all
Reply to author
Forward
0 new messages