changeset 580:79fbc20c786b

browser_side: fixes call to logging method with more than one argument
author souliane <souliane@mailoo.org>
date Sun, 19 Oct 2014 12:32:08 +0200
parents 4a0f2f294ea2
children 1c1dbe03d3c6
files src/browser/sat_browser/card_game.py src/browser/sat_browser/panels.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/card_game.py	Sun Oct 19 02:45:18 2014 +0200
+++ b/src/browser/sat_browser/card_game.py	Sun Oct 19 12:32:08 2014 +0200
@@ -177,9 +177,9 @@
         def _getTarotCardsPathsCb(paths):
             log.debug("_getTarotCardsPathsCb")
             for file_ in paths:
-                log.debug("path:", file_)
+                log.debug("path: %s" % file_)
                 card = CardWidget(self, file_)
-                log.debug("card:", card)
+                log.debug("card: %s" % card)
                 self.cards[(card.suit, card.value)] = card
                 self.deck.append(card)
             self._parent.host.bridge.call('tarotGameReady', None, self.player_nick, self.referee)
--- a/src/browser/sat_browser/panels.py	Sun Oct 19 02:45:18 2014 +0200
+++ b/src/browser/sat_browser/panels.py	Sun Oct 19 12:32:08 2014 +0200
@@ -810,7 +810,7 @@
             log.debug("adding blogs for [%s]" % publisher)
             for mblog in mblogs[publisher]:
                 if not "content" in mblog:
-                    log.warning("No content found in microblog [%s]", mblog)
+                    log.warning("No content found in microblog [%s]" % mblog)
                     continue
                 self.addEntry(mblog)
 
@@ -820,7 +820,7 @@
         """
         for mblog in mblogs:
             if not "content" in mblog:
-                log.warning("No content found in microblog [%s]", mblog)
+                log.warning("No content found in microblog [%s]" % mblog)
                 continue
             self.addEntry(mblog)