mirror of https://github.com/fail2ban/fail2ban
ENH: instead of "Invalid command" warning log exception why command failed
parent
0b5c66fb59
commit
2d66f31ef5
|
@ -55,7 +55,8 @@ class Transmitter:
|
||||||
ret = self.__commandHandler(command)
|
ret = self.__commandHandler(command)
|
||||||
ack = 0, ret
|
ack = 0, ret
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logSys.warn("Invalid command: " + `command`)
|
logSys.warn("Command %r has failed. Received %r"
|
||||||
|
% (command, e))
|
||||||
ack = 1, e
|
ack = 1, e
|
||||||
return ack
|
return ack
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue