j***@gmail.com
2017-10-16 11:07:17 UTC
After a lot of digging, I found that for some reason Pyzo 4.4.2 using Python 3.6.3 are not working together regarding the logging library. This is the simple script I have used to confirm that Pyzo is the problem:
import logging
logging.basicConfig( level=logging.DEBUG )
logging.debug('DEBUG')
logging.info('INFO')
logging.warning('WARINING')
In Pyzo the output is:
WARNING:root:WARINING
Using the same python executable in the command line the output is:
DEBUG:root:DEBUG
INFO:root:INFO
WARNING:root:WARINING
This leads me to beleive Pyzo does something with logging, where a configuration is already made. When I change the script to the following ( by resetting the logger handlers ):
import logging
logging.getLogger('').handlers = []
logging.basicConfig( level=logging.DEBUG )
logging.debug('DEBUG')
logging.info('INFO')
logging.warning('WARINING')
both ways have the same result.
Is there any intended behavior of which I am not aware?
import logging
logging.basicConfig( level=logging.DEBUG )
logging.debug('DEBUG')
logging.info('INFO')
logging.warning('WARINING')
In Pyzo the output is:
WARNING:root:WARINING
Using the same python executable in the command line the output is:
DEBUG:root:DEBUG
INFO:root:INFO
WARNING:root:WARINING
This leads me to beleive Pyzo does something with logging, where a configuration is already made. When I change the script to the following ( by resetting the logger handlers ):
import logging
logging.getLogger('').handlers = []
logging.basicConfig( level=logging.DEBUG )
logging.debug('DEBUG')
logging.info('INFO')
logging.warning('WARINING')
both ways have the same result.
Is there any intended behavior of which I am not aware?
--
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyzo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.