diff options
| -rw-r--r-- | deps/rabbit/src/rabbit_maintenance.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/deps/rabbit/src/rabbit_maintenance.erl b/deps/rabbit/src/rabbit_maintenance.erl index 97de68bc6f..f8e93b4d6d 100644 --- a/deps/rabbit/src/rabbit_maintenance.erl +++ b/deps/rabbit/src/rabbit_maintenance.erl @@ -67,7 +67,9 @@ is_enabled() -> drain() -> case is_enabled() of true -> do_drain(); - false -> rabbit_log:warning("Feature flag `~s` is not enabled, draining is a no-op", [?FEATURE_FLAG]) + false -> + rabbit_log:error("Feature flag '~s' is not enabled, cannot put this node under maintenance", [?FEATURE_FLAG]), + {error, rabbit_misc:format("Feature flag '~s' is not enabled, cannot put this node under maintenance", [?FEATURE_FLAG])} end. -spec do_drain() -> ok. @@ -102,7 +104,9 @@ do_drain() -> revive() -> case is_enabled() of true -> do_revive(); - false -> rabbit_log:warning("Feature flag `~s` is not enabled, reviving is a no-op", [?FEATURE_FLAG]) + false -> + rabbit_log:error("Feature flag '~s' is not enabled, cannot put this node out of maintenance", [?FEATURE_FLAG]), + {error, rabbit_misc:format("Feature flag '~s' is not enabled, cannot put this node out of maintenance", [?FEATURE_FLAG])} end. -spec do_revive() -> ok. |
