refactor: improve logging information and descriptions
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
parent
78c5a779d7
commit
c9100c7591
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue