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