Add session-time on disconnect to debug-log
This commit is contained in:
parent
040b451c7d
commit
1b1ed86750
|
@ -104,6 +104,7 @@ class Client(object):
|
||||||
raise InvalidLog('disconnect before connect!')
|
raise InvalidLog('disconnect before connect!')
|
||||||
self.connected -= 1
|
self.connected -= 1
|
||||||
session_time = timestamp - self._last_connect
|
session_time = timestamp - self._last_connect
|
||||||
|
logger.debug('Session lasted %s', session_time)
|
||||||
self.onlinetime += session_time
|
self.onlinetime += session_time
|
||||||
self.last_seen = timestamp
|
self.last_seen = timestamp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue