From 040b451c7d255f9b3ba61706c9af683825289e16 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 4 Oct 2016 15:18:08 +0200 Subject: [PATCH] Add timestamp for (dis)connect to debug-log --- tsstats/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/client.py b/tsstats/client.py index 985deed..30efba0 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -87,7 +87,7 @@ class Client(object): :param timestamp: time of connect :type timestamp: int ''' - logger.debug('CONNECT %s', self) + logger.debug('[%s] CONNECT %s', timestamp, self) self.connected += 1 self._last_connect = timestamp @@ -98,7 +98,7 @@ class Client(object): :param timestamp: time of disconnect :type timestamp: int ''' - logger.debug('DISCONNECT %s', self) + logger.debug('[%s] DISCONNECT %s', timestamp, self) if not self.connected: logger.debug('^ disconnect before connect') raise InvalidLog('disconnect before connect!')