changeset 401:907b10480394

mam: fixed confusion between twisted log.msg and log.warning used elsewhere
author Goffi <goffi@goffi.org>
date Tue, 07 May 2019 09:15:20 +0200
parents 371e72871e19
children 724e39d596a9
files src/mam.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/mam.py	Tue May 07 08:25:31 2019 +0200
+++ b/src/mam.py	Tue May 07 09:15:20 2019 +0200
@@ -120,8 +120,8 @@
                             # above the total number of items, which means we are complete
                             attributes['complete'] = "true"
                     else:
-                        log.warning(u"no <first> element in RSM request: {xml}".format(
-                            xml = rsm_elt.toXml()))
+                        log.msg("WARNING: no <first> element in RSM request: {xml}".format(
+                            xml = rsm_elt.toXml().encode('utf-8')))
                 elif item_data.item.name == 'item':
                     msg_data.append([item_data.item['id'], make_message(item_data.item),
                                      item_data.created])