Add error logging in case committing session fails..

probably need to add a retry somewhere but still not getting the
traceback we need to figure that out...
This commit is contained in:
Lance Edgar 2017-06-01 16:21:48 -05:00
parent 5ee411ba23
commit 20e3b83525

View file

@ -89,7 +89,11 @@ class TempmonClient(Daemon):
# make sure we show as being online # make sure we show as being online
if not client.online: if not client.online:
client.online = True client.online = True
session.commit() try:
session.commit()
except:
log.exception("failed to commit changes to database")
raise
finally: finally:
session.close() session.close()