diff frontends/src/quick_frontend/quick_chat.py @ 1296:ebf72fe68d1c frontends_multi_profiles

quick_frontend: fix the history log message
author souliane <souliane@mailoo.org>
date Fri, 06 Feb 2015 10:50:01 +0100
parents faa1129559b8
children 8ea8fa13c351
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py	Mon Jan 26 02:03:16 2015 +0100
+++ b/frontends/src/quick_frontend/quick_chat.py	Fri Feb 06 10:50:01 2015 +0100
@@ -156,7 +156,10 @@
         @param search (str): pattern to filter the history results
         @param profile (str): %(doc_profile)s
         """
-        log.debug(_("now we print the history (%d messages)") % size)
+        log_msg = _(u"now we print the history")
+        if size != C.HISTORY_LIMIT_DEFAULT:
+            log_msg += _(u" (%d messages)" % size)
+        log.debug(log_msg)
 
         def onHistory(history):
             for line in history: