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
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar