From 7b31521968d1c9bba3005f669d6c7f95232cb6c3 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Wed, 5 May 2010 20:41:15 +0200 Subject: [PATCH] Fix log format for server input, output --- mopidy/mpd/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mopidy/mpd/server.py b/mopidy/mpd/server.py index 80eca5f9..f8f61a87 100644 --- a/mopidy/mpd/server.py +++ b/mopidy/mpd/server.py @@ -69,7 +69,7 @@ class MpdSession(asynchat.async_chat): self.input_buffer = [] request = data.decode(ENCODING) host, port = self.client_address - logger.debug(u'Input (%s:%s): %s', host, port, indent(request)) + logger.debug(u'Input ([%s]:%s): %s', host, port, indent(request)) self.handle_request(request) def handle_request(self, request): @@ -89,7 +89,7 @@ class MpdSession(asynchat.async_chat): def send_response(self, output): host, port = self.client_address - logger.debug(u'Output (%s:%s): %s', host, port, indent(output)) + logger.debug(u'Output ([%s]:%s): %s', host, port, indent(output)) output = u'%s%s' % (output, LINE_TERMINATOR) data = output.encode(ENCODING) self.push(data)