ENH: instead of "Invalid command" warning log exception why command failed

pull/77/head
Yaroslav Halchenko 2012-08-02 19:48:59 -04:00
parent 0b5c66fb59
commit 2d66f31ef5
1 changed files with 2 additions and 1 deletions

View File

@ -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