Skip to content

Commit

Permalink
Issue #423: Fix logging details for onNotification method
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Hernandez <alexis22229@gmail.com>
  • Loading branch information
AlexITC authored and sbernard31 committed Nov 9, 2017
1 parent e54f0a3 commit 69881c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ public void onNotification(Request coapRequest, Response coapResponse) {
// get observation for this request
Observation observation = registrationStore.getObservation(regid, coapResponse.getToken());
if (observation == null) {
LOG.error("Unexpected error: Unable to find observation with token {} for registration {}", observation,
coapResponse.getToken());
LOG.error("Unexpected error: Unable to find observation with token {} for registration {}",
Hex.encodeHexString(coapResponse.getToken()), regid);
return;
}

Expand Down

0 comments on commit 69881c0

Please sign in to comment.