[Git][gajim/gajim][master] Add JID to log output
Philipp Hörist
gitlab at dev.gajim.org
Thu Jul 19 17:16:55 CEST 2018
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5ed9768b by Philipp Hörist at 2018-07-19T17:15:28+02:00
Add JID to log output
- - - - -
1 changed file:
- gajim/common/modules/entity_time.py
Changes:
=====================================
gajim/common/modules/entity_time.py
=====================================
--- 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())
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/5ed9768b874d13ddfe9e374752febcbe06b52d12
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/5ed9768b874d13ddfe9e374752febcbe06b52d12
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20180719/2f506071/attachment.html>
More information about the Commits
mailing list