emit rapidfire cache info only when debug >= 3

This commit is contained in:
Matthew Wall
2017-03-12 12:42:52 -04:00
parent 156b223157
commit de4ae94b48
2 changed files with 7 additions and 3 deletions

View File

@@ -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']))

View File

@@ -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,