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:
parent
5ee411ba23
commit
20e3b83525
|
@ -89,7 +89,11 @@ class TempmonClient(Daemon):
|
|||
# make sure we show as being online
|
||||
if not client.online:
|
||||
client.online = True
|
||||
session.commit()
|
||||
try:
|
||||
session.commit()
|
||||
except:
|
||||
log.exception("failed to commit changes to database")
|
||||
raise
|
||||
|
||||
finally:
|
||||
session.close()
|
||||
|
|
Loading…
Reference in a new issue