kopia lustrzana https://github.com/bertrik/ttnhabbridge
Catch and log unhandled exceptions
rodzic
83b2973591
commit
1ce025f9e0
|
@ -123,6 +123,9 @@ public final class TtnHabBridge {
|
|||
LOG.warn("JSON unmarshalling exception '{}' for {}", e.getMessage(), textMessage);
|
||||
} catch (DecodeException e) {
|
||||
LOG.warn("Payload decoding exception: {}", e.getMessage());
|
||||
} catch (Exception e) {
|
||||
LOG.trace("Caught unhandled exception", e);
|
||||
LOG.error("Caught unhandled exception", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -140,6 +140,9 @@ public final class HabitatUploader {
|
|||
LOG.info("Result payload telemetry doc {}: {}", docId, response);
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Caught exception: {}", e.getMessage());
|
||||
} catch (Exception e) {
|
||||
LOG.trace("Caught unhandled exception", e);
|
||||
LOG.error("Caught unhandled exception", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue