added logging of MQTT payload errors
This commit is contained in:
parent
045c8e3aca
commit
e5a6ddb03b
@ -207,7 +207,7 @@ public class JsonMqttAdaptor implements MqttTransportAdaptor {
|
||||
try {
|
||||
return new JsonParser().parse(payload);
|
||||
} catch (JsonSyntaxException ex) {
|
||||
log.error("Payload is in incorrect format: " + payload);
|
||||
log.error("Payload is in incorrect format: {}", payload);
|
||||
throw new AdaptorException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user