coblox / bobtimus

an autobot that automatically handles swaps as Bob
Apache License 2.0
1 stars 1 forks source link

Include error objects in log statements #68

Closed thomaseizinger closed 5 years ago

thomaseizinger commented 5 years ago

Error objects include useful information like stacktraces which can greatly help in diagnosing problems. We should always include those as separate arguments in the log messages and leave the formatting to the log framework / appender otherwise we lose the stacktrace information.