Intercept wanted tracebacks
In Mercurial, the traceback output of catched exceptions is produced by the ui.traceback()
method, which writes directly to stderr
, and isn't intercepted by loggingmod
.
This is problematic for the contexts for which loggingmod
is intended: stderr
can be a very wrong place to end up.