"No handlers could be found for logger xxx" ?

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu May 25 13:17:21 EDT 2006


robert wrote:

> some packages like paramiko use the logging. I get this messages:
> "No handlers could be found for logger xxx" on stderr
>
> Why is un-initialized logging allowed to chatter at all?

You could invoke logging.basicConfig with a level of CRITICAL. This
will generally filter out logging messages.

Un-initialized logging chatters because in development environments,
it's useful to be able to spot misconfigured loggers. For production
use, set logging.raiseExceptions to 0 and logging should then be quiet.

Regards,

Vinay Sajip




More information about the Python-list mailing list