Skip to content

Commit 9648cab

Browse files
Merge pull request #3294 from rabbitmq/mergify/bp/v3.9.x/pr-3283
Logging: Use `:` as the separator in verbosity mapping (backport #3283)
2 parents 05e322d + d5db735 commit 9648cab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deps/rabbit/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_early_logging.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,19 +470,19 @@ parse_json_field_mapping([], Mapping) ->
470470
%% @doc
471471
%% Parses the verbosity_map pattern.
472472
%%
473-
%% The pattern is of the form: `debug=2 info=1 *=0'.
473+
%% The pattern is of the form: `debug:2 info:1 *:0'.
474474
%%
475-
%% `debug=2' means that the verbosity of the debug level is 2.
475+
%% `debug:2' means that the verbosity of the debug level is 2.
476476
%%
477-
%% `*=0' means that the verbosity of all non-mentionned levels is 0.
477+
%% `*:0' means that the verbosity of all non-mentionned levels is 0.
478478

479479
parse_json_verbosity_mapping("") ->
480480
#{};
481481
parse_json_verbosity_mapping(RawMapping) ->
482482
parse_json_verbosity_mapping(string:split(RawMapping, " ", all), #{}).
483483

484484
parse_json_verbosity_mapping([Entry | Rest], Mapping) ->
485-
Mapping1 = case string:split(Entry, "=", leading) of
485+
Mapping1 = case string:split(Entry, ":", leading) of
486486
["*", VerbS] ->
487487
Verb = list_to_integer(VerbS),
488488
Mapping#{'$REST' => Verb};

0 commit comments

Comments
 (0)