diff options
author | Kali Kaneko <kali@leap.se> | 2013-05-23 05:23:37 +0900 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-05-23 05:23:37 +0900 |
commit | b45d207241dc22eda1129bc37d7a0948235b20fb (patch) | |
tree | 6378cc2d2a3de406634ef0a16d3748c4d8c01e26 /src/leap/common/events/component.py | |
parent | c2b8ebb38a72acd2f60659241883a146cc384aec (diff) |
make more compact debug info by truncating strings
Diffstat (limited to 'src/leap/common/events/component.py')
-rw-r--r-- | src/leap/common/events/component.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/common/events/component.py b/src/leap/common/events/component.py index 98a97bc..f62f948 100644 --- a/src/leap/common/events/component.py +++ b/src/leap/common/events/component.py @@ -137,7 +137,7 @@ def register(signal, callback, uid=None, replace=False, reqcbk=None, logger.info( "Sending registration request to server on port %s: %s", server.SERVER_PORT, - str(request)) + str(request)[:40]) return service.register(request, callback=reqcbk, timeout=timeout) @@ -178,7 +178,7 @@ def signal(signal, content="", mac_method="", mac="", reqcbk=None, request.mac = mac service = RpcService(proto.EventsServerService_Stub, server.SERVER_PORT, 'localhost') - logger.info("Sending signal to server: %s", str(request)) + logger.info("Sending signal to server: %s", str(request)[:40]) return service.signal(request, callback=reqcbk, timeout=timeout) @@ -204,7 +204,7 @@ class EventsComponentService(proto.EventsComponentService): @param done: callback to be called when done @type done: protobuf.socketrpc.server.Callback """ - logger.info('Received signal from server: %s' % str(request)) + logger.info('Received signal from server: %s...' % str(request)[:40]) # run registered callbacks # TODO: verify authentication using mac in incoming message |