New mock logging
Michael E Brown
Michael_E_Brown at dell.com
Mon Nov 12 22:12:19 UTC 2007
On Fri, Nov 09, 2007 at 04:47:11PM -0700, Orion Poplawski wrote:
> How do I get rid of the:
>
> 2007-11-09 16:46:03,285 - util.py:194:DEBUG:
>
> prefix that seems to have appeared with mock 0.8 (0.8.4)? At least from
> the build.log. Might be useful in the other logs...
Well, the problem I ran into was that the python logging module doesnt
provide a nice way to pull handlers/formatters from the config file by
name. The relevant code is in backend.py in the _resetLogging()
function.
On line 475, I set up the formatter. I can probably figure out a way to
put the format line in the config file, but for now it is hardcoded.
--
Michael
More information about the devel
mailing list