change log level: warning -> info on stop publish
Message publishes may be prevented by hooks by returning `{stop, Msg}` or variants. However, this causes a log message at warning level. Since a hook can potentially prevent multiple messages rapidly, these warning messages pollute the logs. Similar level of detail is present currently at info level, so demoting this message to info.
This commit is contained in:
parent
8822468528
commit
1f842e4a19
|
@ -92,7 +92,7 @@ publish(Msg = #mqtt_message{from = From}) ->
|
|||
{ok, Msg1 = #mqtt_message{topic = Topic}} ->
|
||||
emqttd_pubsub:publish(Topic, Msg1);
|
||||
{stop, Msg1} ->
|
||||
lager:warning("Stop publishing: ~s", [emqttd_message:format(Msg1)]),
|
||||
lager:info("Stop publishing: ~s", [emqttd_message:format(Msg1)]),
|
||||
ignore
|
||||
end.
|
||||
|
||||
|
|
Loading…
Reference in New Issue