From 5ed9768b874d13ddfe9e374752febcbe06b52d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 19 Jul 2018 17:15:28 +0200 Subject: [PATCH] Add JID to log output --- gajim/common/modules/entity_time.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gajim/common/modules/entity_time.py b/gajim/common/modules/entity_time.py index 44e50db9b..4459a4bd3 100644 --- a/gajim/common/modules/entity_time.py +++ b/gajim/common/modules/entity_time.py @@ -91,7 +91,8 @@ class EntityTime: # Remove the trailing "+00:00" utc_time = utc_time[:-6] else: - log.warning('Wrong timezone defintion: %s', utc_time) + log.warning('Wrong timezone defintion: %s %s', + utc_time, stanza.getFrom()) return try: @@ -101,7 +102,8 @@ class EntityTime: t = datetime.datetime.strptime(utc_time, '%Y-%m-%dT%H:%M:%S.%f') except ValueError as e: - log.warning('Wrong time format: %s', e) + log.warning('Wrong time format: %s %s', + e, stanza.getFrom()) return t = t.replace(tzinfo=UTC())