Skip to content

Commit

Permalink
* MDF [conf_ver2] discard unwanted warning log
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Jul 31, 2024
1 parent 9ed00e6 commit bb05a8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supplemental/nanolib/conf_ver2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ conf_bridge_node_parse(
jso_key2->valuedouble == 2)) {
s->qos = jso_key2->valuedouble;
} else {
log_warn("invalid qos level detected in forwarding list");
if (jso_key2 != NULL)
log_warn("invalid qos level detected in forwarding list");
}
if (!s->remote_topic || !s->local_topic) {
log_warn("remote_topic/local_topic not found");
Expand Down

0 comments on commit bb05a8f

Please sign in to comment.