From 95f1312df7e65c7677c4f27c41773966143a3dab Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Wed, 13 Sep 2023 20:52:08 +0200 Subject: [PATCH] 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 --- apps/emqx_ctl/src/emqx_ctl.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_ctl/src/emqx_ctl.erl b/apps/emqx_ctl/src/emqx_ctl.erl index a51f4919c..41a843d28 100644 --- a/apps/emqx_ctl/src/emqx_ctl.erl +++ b/apps/emqx_ctl/src/emqx_ctl.erl @@ -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;