From 2d66f31ef56dbd0bed666a4610ea60e851541ddb Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 2 Aug 2012 19:48:59 -0400 Subject: [PATCH] ENH: instead of "Invalid command" warning log exception why command failed --- server/transmitter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/transmitter.py b/server/transmitter.py index f78afaec..a618a1a1 100644 --- a/server/transmitter.py +++ b/server/transmitter.py @@ -55,7 +55,8 @@ class Transmitter: ret = self.__commandHandler(command) ack = 0, ret except Exception, e: - logSys.warn("Invalid command: " + `command`) + logSys.warn("Command %r has failed. Received %r" + % (command, e)) ack = 1, e return ack