We should prefer to log Throwables via the proper log entry structure, as opposed to just appending as a string. For example:
try {
someMethod();
} catch (Throwable t) {
log.error(t).append("Unexpected error").endl(); // 1)
log.error().append("Unexpected error: ").append(t).endl(); // 2)
}
we should standardize on 1.
We should go through the code and fixup our usage of it.
We should prefer to log
Throwables via the proper log entry structure, as opposed to just appending as a string. For example:we should standardize on 1.
We should go through the code and fixup our usage of it.