Disable file logging for production use
This commit is contained in:
parent
fdc54769d6
commit
88fbc49fcb
|
@ -166,10 +166,11 @@ def main():
|
|||
logging.basicConfig( format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
|
||||
datefmt='%Y-%m-%d %H:%M:%S',
|
||||
level=logging.INFO,
|
||||
handlers=[
|
||||
logging.FileHandler("%s/current.log" % (os.path.dirname(os.path.realpath(__file__)))),
|
||||
logging.StreamHandler()
|
||||
])
|
||||
#handlers=[
|
||||
# logging.FileHandler("%s/current.log" % (os.path.dirname(os.path.realpath(__file__)))),
|
||||
# logging.StreamHandler()
|
||||
#]
|
||||
)
|
||||
|
||||
try:
|
||||
logging.info("Start");
|
||||
|
|
Loading…
Reference in New Issue