kuuko pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=8cbee5c44d706a9fc25bfc7f841d25745fadb40b

commit 8cbee5c44d706a9fc25bfc7f841d25745fadb40b
Author: Kai Huuhko <kai.huu...@gmail.com>
Date:   Wed Oct 23 21:47:26 2013 +0300

    Handle unknown domain messages in "efl" logger.
---
 efl/eo/efl.eo.pyx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/efl/eo/efl.eo.pyx b/efl/eo/efl.eo.pyx
index 451d8ce..c54739b 100644
--- a/efl/eo/efl.eo.pyx
+++ b/efl/eo/efl.eo.pyx
@@ -41,10 +41,10 @@ cdef void py_eina_log_print_cb(const_Eina_Log_Domain *d,
                               Eina_Log_Level level,
                               const_char *file, const_char *fnc, int line,
                               const_char *fmt, void *data, va_list args) with 
gil:
-
     cdef str msg = PyString_FromFormatV(fmt, args)
     rec = logging.LogRecord(d.name, log_levels[level], file, line, msg, None, 
None, fnc)
-    loggers[d.name].handle(rec)
+    logger = loggers.get(d.name, loggers["efl"])
+    logger.handle(rec)
 
 eina_log_print_cb_set(py_eina_log_print_cb, NULL)
 

-- 


Reply via email to