comparison vanlogger.py @ 34:5b03de9fb20b default tip

Log that we logged some data.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 14 Dec 2021 13:10:27 +1030
parents a9df202d14b7
children
comparison
equal deleted inserted replaced
33:7125b13d0528 34:5b03de9fb20b
93 dolog = True 93 dolog = True
94 then = datetime.datetime.now() 94 then = datetime.datetime.now()
95 if dolog: 95 if dolog:
96 try: 96 try:
97 log_victron(v, cur) 97 log_victron(v, cur)
98 logger.info('Logging data')
98 except (AttributeError, dbus.exceptions.DBusException) as e: 99 except (AttributeError, dbus.exceptions.DBusException) as e:
99 # We get various errors during startup so just log and keep going 100 # We get various errors during startup so just log and keep going
100 logger.error('Error getting data: %s', str(e)) 101 logger.error('Error getting data: %s', str(e))
101 102
102 dbh.commit() 103 dbh.commit()