diff src/browser/sat_browser/blog.py @ 694:82123705474b

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:02 +0200
parents 9877607c719a
children 531eacb82e9f
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Thu Apr 16 13:29:26 2015 +0200
+++ b/src/browser/sat_browser/blog.py	Thu Apr 16 14:57:02 2015 +0200
@@ -532,9 +532,9 @@
         """
         count_pub = len(mblogs)
         count_msg = sum([len(value) for value in mblogs.values()])
-        log.debug("massive insertion of {count_msg} blogs for {count_pub} contacts".format(count_msg=count_msg, count_pub=count_pub))
+        log.debug(u"massive insertion of {count_msg} blogs for {count_pub} contacts".format(count_msg=count_msg, count_pub=count_pub))
         for publisher in mblogs:
-            log.debug("adding {count} blogs for [{publisher}]".format(count=len(mblogs[publisher]), publisher=publisher))
+            log.debug(u"adding {count} blogs for [{publisher}]".format(count=len(mblogs[publisher]), publisher=publisher))
             self.mblogsInsert(mblogs[publisher])
         self.next_rsm_index += C.RSM_MAX_ITEMS
         self.footer.waiting = False
@@ -551,7 +551,7 @@
 
         for mblog in mblogs:
             if "content" not in mblog:
-                log.warning("No content found in microblog [%s]" % mblog)
+                log.warning(u"No content found in microblog [%s]" % mblog)
                 continue
             self.addEntry(mblog, update_header=False)