luca
January 31, 2017, 9:27am
#1
Good morning,
I noticed that importing ‘snappy’, and importing ‘logging’, causes logging module not well functioning. More in particular, logging is not able to write a logging file. Do you noticed this problem?
I simply execute:
import snappy
import logging
logging.basicConfig(format=’%(asctime)s %(message)s’, filename=“mylog.log”, datefmt=’%Y/%m/%d %I:%M:%S %p’, level=logging.DEBUG)
logging.debug(“A debug message”)
logging.info(“An info message”)
logging.warning(“A warning message”)
I verified that excluding snappy the logging module works well
Luca
marpet
January 31, 2017, 12:19pm
#2
Yes this was already reported some time ago.
Please have a look at this thread:
My logging for my python code was working using: import logging logging.basicConfig(filename=logfile,level=logging.DEBUG) logging.debug('This message should go to the log file')
but once I add any one of the following lines, the logging no longer works: from snappy import Product from snappy import ProductData from snappy import ProductIO from snappy import ProductUtils
Any suggestions? Thanks john
luca
January 31, 2017, 12:55pm
#3
sorry, yes that thread helps me