From 52a713cde921e91791407b3f55434d453aab0c07 Mon Sep 17 00:00:00 2001 From: souliane Date: Fri, 6 Feb 2015 10:50:01 +0100 Subject: [PATCH] quick_frontend: fix the history log message --- frontends/src/quick_frontend/quick_chat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontends/src/quick_frontend/quick_chat.py b/frontends/src/quick_frontend/quick_chat.py index cd976b5d..e413e86f 100644 --- a/frontends/src/quick_frontend/quick_chat.py +++ b/frontends/src/quick_frontend/quick_chat.py @@ -156,7 +156,10 @@ class QuickChat(quick_widgets.QuickWidget): @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: