Commit 5ed9768b authored by Philipp Hörist's avatar Philipp Hörist

Add JID to log output

parent 3a3b5aff
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment