mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-07-10 09:33:02 +00:00
ENH: instead of "Invalid command" warning log exception why command failed
This commit is contained in:
parent
0b5c66fb59
commit
2d66f31ef5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue