Log rabbitmqctl's output on failure
It would be helpful to see rabbit's output when it exits with non-zero status code. The log level is left at info, as it might be business as usual that a node is not running rabbit. The -q switch prevents the output from being logged if the return value is zero.
This commit is contained in:
parent
2c17e8645e
commit
b43f6aa7db
|
@ -256,7 +256,7 @@ rabbitmqctl_action() {
|
|||
local rc
|
||||
local action
|
||||
action=$@
|
||||
$RABBITMQ_CTL $NODENAME_ARG $action > /dev/null 2> /dev/null
|
||||
ocf_run -q -info $RABBITMQ_CTL $NODENAME_ARG $action
|
||||
rc=$?
|
||||
case "$rc" in
|
||||
0)
|
||||
|
|
Loading…
Reference in New Issue