chore(emqx_ctl): lower command override log from warning to info

prior to this change this warning message is always logged if a node
joins cluster.

the intention of this warning is to detect potential command name
clash (provided by different plugins), so arguably it should be
at debug level
This commit is contained in:
Zaiming (Stone) Shi 2023-09-13 20:52:08 +02:00
parent 1546fdcd94
commit 95f1312df7
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ handle_call({register_command, Cmd, MF, Opts}, _From, State = #state{seq = Seq})
ets:insert(?CMD_TAB, {{Seq, Cmd}, MF, Opts}),
{reply, ok, next_seq(State)};
[[OriginSeq] | _] ->
?LOG_WARNING(#{msg => "CMD_overridden", cmd => Cmd, mf => MF}),
?LOG_INFO(#{msg => "CMD_overridden", cmd => Cmd, mf => MF}),
true = ets:insert(?CMD_TAB, {{OriginSeq, Cmd}, MF, Opts}),
{reply, ok, State}
end;