Fix logging of unhandled exceptions.

pull/3/head
Bertrik Sikken 2019-05-04 18:57:53 +02:00
rodzic 4f9984dd27
commit f0341688ce
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -125,7 +125,7 @@ public final class TtnHabBridge {
LOG.warn("Payload decoding exception: {}", e.getMessage());
} catch (Exception e) {
LOG.trace("Caught unhandled exception", e);
LOG.error("Caught unhandled exception", e.getMessage());
LOG.error("Caught unhandled exception:" + e.getMessage());
}
}

Wyświetl plik

@ -142,7 +142,7 @@ public final class HabitatUploader {
LOG.warn("Caught exception: {}", e.getMessage());
} catch (Exception e) {
LOG.trace("Caught unhandled exception", e);
LOG.error("Caught unhandled exception", e.getMessage());
LOG.error("Caught unhandled exception: " + e.getMessage());
}
}