Core focus:
1) wrap errors via github.com/pkg/errors; this formalizees a lot of
the adhoc context wrapping we've been doing.
2) Via that, drop the overly verbose logging from each layer logging
the error as it passes through each layer.
3) cleanup the log lines as much as possible.
Convert to logrus logging.
The point here is to provide json logging (if a flag is passed), control
over the log level, and move towards a structured logger internally
which we can progressively make use of.
Clean up error returns and logging.
Core focus: 1) wrap errors via github.com/pkg/errors; this formalizees a lot of the adhoc context wrapping we've been doing. 2) Via that, drop the overly verbose logging from each layer logging the error as it passes through each layer. 3) cleanup the log lines as much as possible.
Convert to logrus logging.
The point here is to provide json logging (if a flag is passed), control over the log level, and move towards a structured logger internally which we can progressively make use of.