@@ -302,6 +302,8 @@ set_log_level(Level) ->
302
302
(Filter ) ->
303
303
Filter
304
304
end , Filters ),
305
+ % % If the log level is set to `debug', we turn off burst limit to
306
+ % % make sure all debug messages make it.
305
307
Config1 = adjust_burst_limit (Config , Level ),
306
308
logger :set_handler_config (Id , filters , Filters1 ),
307
309
logger :set_handler_config (Id , config , Config1 ),
@@ -312,6 +314,8 @@ set_log_level(Level) ->
312
314
" Logging: changing '~s ' handler log level to ~s " ,
313
315
[Id , Level ],
314
316
#{domain => ? RMQLOG_DOMAIN_GLOBAL }),
317
+ % % If the log level is set to `debug', we turn off burst limit to
318
+ % % make sure all debug messages make it.
315
319
Config1 = adjust_burst_limit (Config , Level ),
316
320
logger :set_handler_config (Id , config , Config1 ),
317
321
logger :set_handler_config (Id , level , Level ),
@@ -1419,6 +1423,9 @@ filter_log_event(LogEvent, FilterConfig) ->
1419
1423
% %
1420
1424
% % If a filter is more permissive, we need to adapt the handler log level so
1421
1425
% % the message makes it to the filter.
1426
+ % %
1427
+ % % Also, if the log level is set to `debug', we turn off burst limit to make
1428
+ % % sure all debug messages make it.
1422
1429
1423
1430
adjust_log_levels (Handlers ) ->
1424
1431
maps :map (
0 commit comments