Mercurial > libervia-backend
changeset 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 | 0541cb64217e |
children | ef7e8e23b353 |
files | frontends/src/quick_frontend/quick_chat.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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: