changeset 2118:442423faf220

bridge (constructor/embedded): fixed warning on unregistered callback
author Goffi <goffi@goffi.org>
date Sun, 15 Jan 2017 16:00:40 +0100
parents 627cc6120c0e
children 469702b46768
files src/bridge/bridge_constructor/constructors/embedded/constructor.py src/bridge/bridge_constructor/constructors/embedded/embedded_template.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/constructors/embedded/constructor.py	Sun Jan 15 16:00:40 2017 +0100
+++ b/src/bridge/bridge_constructor/constructors/embedded/constructor.py	Sun Jan 15 16:00:40 2017 +0100
@@ -35,7 +35,7 @@
         try:
             cb = self._signals_cbs["{category}"]["{name}"]
         except KeyError:
-            log.warning(u"ignoring signal {{}}: no callback registered".format({name}))
+            log.warning(u"ignoring signal {name}: no callback registered")
         else:
             cb({args_result})
 """
--- a/src/bridge/bridge_constructor/constructors/embedded/embedded_template.py	Sun Jan 15 16:00:40 2017 +0100
+++ b/src/bridge/bridge_constructor/constructors/embedded/embedded_template.py	Sun Jan 15 16:00:40 2017 +0100
@@ -79,7 +79,7 @@
         try:
             cb = self._signals_cbs["plugin"][name]
         except KeyError:
-            log.warning(u"ignoring signal {}: no callback registered".format(name))
+            log.debug(u"ignoring signal {}: no callback registered".format(name))
         else:
             cb(*args, **kwargs)