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:
parent
1546fdcd94
commit
95f1312df7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue