[Twisted-Python] Re: [Twisted-commits] r14614 - Describe log.debug, and 'printed' and 'debug' log dict items.

glyph at divmod.com glyph at divmod.com
Tue Oct 4 17:01:20 EDT 2005

On Tue, 4 Oct 2005 16:31:58 -0400, James Y Knight <foom at fuhm.net> wrote:

>log.msg("error message", isError=1)

Please don't ever do this.  Log observers which check the isError flag expect a stricter interface; a Failure object, for one thing, like log.err puts there.

Really this should be using the interface keyword arg that itamar mentioned, set to something like log.IErrorReport.  To ensure portability when that does become the convention, use log.err.

More information about the Twisted-Python mailing list