refactor: improve logging information and descriptions

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
Thales Macedo Garitezi 2023-09-06 13:33:59 -03:00 committed by GitHub
parent 78c5a779d7
commit c9100c7591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -257,9 +257,10 @@ format_mqtt_properties(MQTTPropertiesTemplate, Selected, Env) ->
?SLOG(
error,
#{
msg => "bad_mqtt_prop_value",
msg => "bad_mqtt_property_value_ignored",
rule_id => RuleId,
reason => {Kind, Error},
exception => Kind,
reason => Error,
property => K,
selected => Selected
}
@ -297,9 +298,10 @@ coerce_properties_values(MQTTProperties, #{metadata := #{rule_id := RuleId}}) ->
?SLOG(
error,
#{
msg => "bad_mqtt_prop_value",
msg => "bad_mqtt_property_value_ignored",
rule_id => RuleId,
reason => {Kind, Error},
reason => Error,
exception => Kind,
property => K,
value => V
}

View File

@ -107,7 +107,7 @@ republish_args_user_properties.label:
"""User Properties"""
republish_args_mqtt_properties.desc:
"""From which variable should the MQTT Publish Properties of the message be taken from.
"""From which variable should the MQTT Publish Properties of the message be taken.
Placeholders like <code>${.payload.content_type}</code> may be used."""
republish_args_mqtt_properties.label: