mirror of
https://github.com/emqx/neuron.git
synced 2026-10-28 05:56:39 +08:00
Merge pull request #827 from gc87/fix-mqtt-string
[main]fix(mqtt): cmd string log error
This commit is contained in:
@@ -559,7 +559,8 @@ static void publish_callback(void ** p_reconnect_state,
|
||||
topic_name[published->topic_name_size] = '\0';
|
||||
|
||||
if (NULL != client->log) {
|
||||
zlog_debug(client->log, "received publish('%s'): %s", topic_name,
|
||||
zlog_debug(client->log, "received publish('%s'): %.*s", topic_name,
|
||||
(int) published->application_message_size,
|
||||
(const char *) published->application_message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user