Skip to content

Logging throwables #108

@devinrsmith

Description

@devinrsmith

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions