From 1b1ed86750af21b8a05990fc87ca184ef9ff95b1 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 4 Oct 2016 15:21:05 +0200 Subject: [PATCH] Add session-time on disconnect to debug-log --- tsstats/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tsstats/client.py b/tsstats/client.py index 30efba0..9335c4a 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -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