Do not log invalid reson for disconnect
This commit is contained in:
parent
de260cfa96
commit
6e69c3d2b0
|
@ -98,7 +98,7 @@ class Connection(threading.Thread):
|
||||||
'Disconnecting from {}:{}. Reason: time.time() - self.last_message_received > shared.timeout'.format(
|
'Disconnecting from {}:{}. Reason: time.time() - self.last_message_received > shared.timeout'.format(
|
||||||
self.host, self.port))
|
self.host, self.port))
|
||||||
self.status = 'disconnecting'
|
self.status = 'disconnecting'
|
||||||
if time.time() - self.last_message_received > 30 and self.status != 'fully_established':
|
if time.time() - self.last_message_received > 30 and self.status != 'fully_established'and self.status != 'disconnecting':
|
||||||
logging.debug(
|
logging.debug(
|
||||||
'Disconnecting from {}:{}. Reason: time.time() - self.last_message_received > 30 and self.status != \'fully_established\''.format(
|
'Disconnecting from {}:{}. Reason: time.time() - self.last_message_received > 30 and self.status != \'fully_established\''.format(
|
||||||
self.host, self.port))
|
self.host, self.port))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user