Skip to content

Commit 383db82

Browse files
Log amq.rabbitmq.log declaration failures as errors
1 parent 12a8ca6 commit 383db82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lager_exchange_backend.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ init_exchange(true) ->
194194
{ok, #resource{virtual_host = DefaultVHost, kind = exchange, name = ?LOG_EXCH_NAME}}
195195
catch
196196
ErrType:Err ->
197-
rabbit_log:debug("Could not initialize exchange '~s' in vhost '~s', reason: ~p:~p",
197+
rabbit_log:error("Could not declare exchange '~s' in vhost '~s', reason: ~p:~p",
198198
[?LOG_EXCH_NAME, DefaultVHost, ErrType, Err]),
199199
{ok, undefined}
200200
end;

0 commit comments

Comments
 (0)