Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

This behaviour is as expected. If no handlers are configured for logging, an 
internal "handler of last resort" is used, with just the message output. See:

https://docs.python.org/3/howto/logging.html#what-happens-if-no-configuration-is-provided

If you call logging.warning(...), and if no handlers are configured, then 
basicConfig() is internally called to set up a handler with a basic format 
string. See:

https://docs.python.org/3/library/logging.html#logging.log

So, what you've described is as it should be.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34107>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to