Closed glyph closed 5 years ago
Only a few files involved, I'll take a crack at this. I think .msg should generally be treated as .info in twisted.logger parlance. For logging occurring in error-handling code, I think .error is ok, although an operator might wish to have the option to change .error to .failure if they want to see tracebacks.
I put together PR #29 for this. It is a pretty short read when/if someone has a moment.
I should also note that the labels available here in the ampoule repository differ from the twisted repository. Most notably, there is no "review required" label here in ampoule.
Fixed in #29 .
Ampoule presently makes heavy use of (old, one-day-hopefully deprecated)
log.msg
, and worse yet, frequently does string interpolation on log messages (see here for example).Let's clean this up to use
twisted.logger
.