summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_lager.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_lager.erl b/src/rabbit_lager.erl
index a132b92ccb..45f2cfbc40 100644
--- a/src/rabbit_lager.erl
+++ b/src/rabbit_lager.erl
@@ -302,7 +302,7 @@ configure_lager() ->
{ok, Val} when is_integer(Val) andalso Val < 1000 ->
ok = application:set_env(lager, error_logger_hwm, 1000),
ok = application:set_env(lager, error_logger_hwm_original, Val);
- {ok, Val} ->
+ {ok, Val} when is_integer(Val) ->
ok = application:set_env(lager, error_logger_hwm_original, Val),
ok
end,