[debexpo-devel] All you logs are belong to us

Christoph Haas email at christoph-haas.de
Mon Jun 16 10:02:40 CEST 2008


On Sonntag, 15. Juni 2008, Jonny Lamb wrote:
> On Sun, Jun 15, 2008 at 09:36:21AM +0200, Christoph Haas wrote:
> > Well, I tend to spam my code with logging statements. Especially in
> > parts that get run in batch mode (unattended in the background). It's
> > nice to set the debug level to DEBUG and see what happens under the
> > hood. Like sometimes I had trouble with certain version strings that
> > contained an epoch. And in such a case it's nice to see where the
> > importer choked.
>
> I don't see a big difference in having a different logging level as one
> can easily tell the logger to log a lower level (and above), but on
> thinking about it, DEBUG is probably a more accurate level and I have no
> reason to keep it on what it is at the moment, so I will go with your
> request! Check out [0].
>
> 0. http://debexpo.workaround.org/trac/changeset/0e7d7ec

Great. That's exactly the logging levels that I had in mind. In production 
the admin can set the level to WARNING and not get the usual information 
if things go well. And if something unexpected happens the admin can lower 
it to DEBUG and follow each and every step of the process.

Thanks!

 Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://workaround.org/pipermail/debexpo-devel/attachments/20080616/ea1dc33c/attachment.pgp 


More information about the debexpo-devel mailing list