Add session-time on disconnect to debug-log

This commit is contained in:
Thor77 2016-10-04 15:21:05 +02:00
parent 040b451c7d
commit 1b1ed86750
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class Client(object):
raise InvalidLog('disconnect before connect!')
self.connected -= 1
session_time = timestamp - self._last_connect
logger.debug('Session lasted %s', session_time)
self.onlinetime += session_time
self.last_seen = timestamp