Author: dmeyer
Date: Sat Mar 18 12:27:00 2006
New Revision: 1295

Modified:
   trunk/base/src/ipc.py

Log:
user logger and not print

Modified: trunk/base/src/ipc.py
==============================================================================
--- trunk/base/src/ipc.py       (original)
+++ trunk/base/src/ipc.py       Sat Mar 18 12:27:00 2006
@@ -23,7 +23,7 @@
 import kaa.notifier
 import kaa
 
-log = logging.getLogger('notifier')
+log = logging.getLogger('ipc')
 
 IPC_DEFAULT_TIMEOUT = 5.0
 
@@ -34,7 +34,7 @@
     if DEBUG  >= level:
         for arg in args:
             text += " " + str(arg)
-        print text
+        log.error(text)
 
 def _pickle_slice(slice):
     return _unpickle_slice, (slice.start, slice.stop, slice.step)
@@ -74,7 +74,6 @@
                                 "hash", "iadd", "imul", "iter", "le", "len",
                                 "lt", "mul", "ne", "nonzero", "rmul", 
"setitem") or \
            attr in ("next,"):
-            #print "--setattr", attr
             setattr(cls, attr, eval("lambda self, *a: self._ipc_meth('%s', a)" 
% attr))
 
     i = cls()
@@ -433,7 +432,7 @@
         else:
             _debug(1, "-> REQUEST: seq=%d, command=%s, data=%d" % (seq, 
command, len(payload)))
             if not hasattr(self, "handle_request_%s" % command):
-                print "handle_request_%s doesn't exist!" % command
+                log.error("handle_request_%s doesn't exist!" % command)
                 return
             try:
                 reply = getattr(self, "handle_request_%s" % command)(data)
@@ -1055,7 +1054,7 @@
                 self._ipc_callable = False
         
         if "__ipc_copy_result" in kwargs:
-            print "DEPRECATION WARNING: use __ipc_noproxy_result instead of 
__ipc_copy_result"
+            log.warning("DEPRECATION WARNING: use __ipc_noproxy_result instead 
of __ipc_copy_result")
         if not kwargs.get("__ipc_noproxy_args"):
             args = self._ipc_client._proxy_data(args)
             # FIXME: should proxy kwargs, but there's a bug.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to