summaryrefslogtreecommitdiff
path: root/src/rabbit_alarm.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-07-18 12:33:40 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-07-18 12:33:40 +0100
commitb30b8382116f5e2643cc1375b8b4393edeaa73fe (patch)
treeb4648668ace894fc98c736a97e44041421ae39be /src/rabbit_alarm.erl
parentee83e9203121a04922d9e14e99bd591bd4ae19aa (diff)
downloadrabbitmq-server-b30b8382116f5e2643cc1375b8b4393edeaa73fe.tar.gz
resource_limit alarms are always atoms, and we don't need quotes around them
Diffstat (limited to 'src/rabbit_alarm.erl')
-rw-r--r--src/rabbit_alarm.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_alarm.erl b/src/rabbit_alarm.erl
index d9db0970..e6625b2b 100644
--- a/src/rabbit_alarm.erl
+++ b/src/rabbit_alarm.erl
@@ -205,7 +205,7 @@ internal_register(Pid, {M, F, A} = HighMemMFA,
State#alarms{alertees = NewAlertees}.
handle_set_alarm({{resource_limit, Source, Node}, []}, State) ->
- rabbit_log:warning("'~p' resource limit alarm set on node ~p~n",
+ rabbit_log:warning("~s resource limit alarm set on node ~p~n",
[Source, Node]),
{ok, maybe_alert(fun dict:append/3, Node, Source, State)};
handle_set_alarm({file_descriptor_limit, []}, State) ->
@@ -216,7 +216,7 @@ handle_set_alarm(Alarm, State) ->
{ok, State}.
handle_clear_alarm({resource_limit, Source, Node}, State) ->
- rabbit_log:warning("'~p' resource limit alarm cleared on node ~p~n",
+ rabbit_log:warning("~s resource limit alarm cleared on node ~p~n",
[Source, Node]),
{ok, maybe_alert(fun dict_unappend/3, Node, Source, State)};
handle_clear_alarm(file_descriptor_limit, State) ->