Fix for missing assignment
This commit is contained in:
parent
1c4aca908e
commit
639b205376
@ -107,7 +107,7 @@ class EventsPullerThread(threading.Thread):
|
|||||||
user=events_server_username,
|
user=events_server_username,
|
||||||
password=events_server_password
|
password=events_server_password
|
||||||
)
|
)
|
||||||
if self.connection.is_connected():
|
if myConnection.is_connected():
|
||||||
logging.info(f"Successfully connected to {events_server_database_name} at {events_server_address}:{events_server_port}")
|
logging.info(f"Successfully connected to {events_server_database_name} at {events_server_address}:{events_server_port}")
|
||||||
self.connection = myConnection
|
self.connection = myConnection
|
||||||
return True
|
return True
|
||||||
@ -115,6 +115,7 @@ class EventsPullerThread(threading.Thread):
|
|||||||
self.connection = None
|
self.connection = None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"Error while connecting to database: {e}")
|
logging.error(f"Error while connecting to database: {e}")
|
||||||
|
logging.exception(e)
|
||||||
self.connection = None
|
self.connection = None
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user