@staticmethods called more than once

Christian mining.facts at gmail.com
Tue May 21 13:17:53 EDT 2013


Am Dienstag, 21. Mai 2013 18:48:07 UTC+2 schrieb John Gordon:
> In <kng7n6$efc$1 at reader1.panix.com> John Gordon <gordon at panix.com> writes:
> 
> 
> 
> > You should only call addHandler() once.
> 
> 
> 
> ...for each intended logging output destination, of course.  If you want
> 
> logging output to appear in a file and on-screen, then you would call
> 
> addHandler() once with a file handler and once with a screen handler.
> 
> 
> 
> But I think you may be calling addHandler multiple times for the same
> 
> file handler, which is causing the duplicate logging output.
> 
> 
> 
> -- 
> 
> John Gordon                   A is for Amy, who fell down the stairs
> 
> gordon at panix.com              B is for Basil, assaulted by bears
> 
>                                 -- Edward Gorey, "The Gashlycrumb Tinies"

Yes you're right.
Many thanks!



More information about the Python-list mailing list