mirror of
https://github.com/weewx/weewx.git
synced 2026-04-23 02:57:09 -04:00
emit rapidfire cache info only when debug >= 3
This commit is contained in:
@@ -569,10 +569,12 @@ class StdWunderground(StdRESTful):
|
||||
|
||||
def new_loop_packet(self, event):
|
||||
"""Puts new LOOP packets in the loop queue"""
|
||||
syslog.syslog(syslog.LOG_DEBUG, "restx: raw packet: %s" % event.packet)
|
||||
if weewx.debug >= 3:
|
||||
syslog.syslog(syslog.LOG_DEBUG, "restx: raw packet: %s" % event.packet)
|
||||
self.cached_values.update(event.packet, event.packet['dateTime'])
|
||||
syslog.syslog(syslog.LOG_DEBUG, "restx: cached packet: %s" %
|
||||
self.cached_values.get_packet(event.packet['dateTime']))
|
||||
if weewx.debug >= 3:
|
||||
syslog.syslog(syslog.LOG_DEBUG, "restx: cached packet: %s" %
|
||||
self.cached_values.get_packet(event.packet['dateTime']))
|
||||
self.loop_queue.put(
|
||||
self.cached_values.get_packet(event.packet['dateTime']))
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@ weewx change history
|
||||
|
||||
Fixed log syntax in wmr100 and wmr9x8 drivers.
|
||||
|
||||
Emit rapidfire cache info only when debug is level 3 or higher.
|
||||
|
||||
3.7.0 03/11/2017
|
||||
|
||||
The tag $current now uses the record included in the event NEW_ARCHIVE_RECORD,
|
||||
|
||||
Reference in New Issue
Block a user