Permalink
Browse files

cosmetic

  • Loading branch information...
1 parent db93138 commit 3d471f6830e711756d7746d537f0520768346b90 @evilkost committed May 9, 2011
Showing with 12 additions and 0 deletions.
  1. +10 −0 brukva/client.py
  2. +2 −0 tests/server_commands.py
View
@@ -15,6 +15,7 @@
from brukva.exceptions import RequestError, ConnectionError, ResponseError, InvalidResponse
log = logging.getLogger('brukva.client')
+log_blob = logging.getLogger('brukva.client.blob')
class ExecutionContext(object):
def __init__(self, callbacks, error_wrapper=None):
@@ -88,6 +89,15 @@ def __init__(self, kind, channel, body):
self.channel = channel
self.body = body
+ def __unicode__(self):
+ return u'<PubSub %s on channel %s: %s >' % (self.kind, self.channel, self.body)
+
+ def __str__(self):
+ return '<PubSub %s on channel %s: %s >' % (self.kind, self.channel, self.body)
+
+ def __repr__(self):
+ return repr(str(self))
+
class CmdLine(object):
def __init__(self, cmd, *args, **kwargs):
self.cmd = cmd
@@ -18,6 +18,8 @@
from brukva.exceptions import ResponseError, RequestError
import logging; logging.basicConfig()
+logging.getLogger().setLevel(logging.DEBUG)
+
def callable(obj):
return hasattr(obj, '__call__')

0 comments on commit 3d471f6

Please sign in to comment.