Disable file logging for production use

This commit is contained in:
Carsten Schmiemann 2023-07-15 11:49:58 +02:00
parent fdc54769d6
commit 88fbc49fcb

View file

@ -166,10 +166,11 @@ def main():
logging.basicConfig( format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s', logging.basicConfig( format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S', datefmt='%Y-%m-%d %H:%M:%S',
level=logging.INFO, level=logging.INFO,
handlers=[ #handlers=[
logging.FileHandler("%s/current.log" % (os.path.dirname(os.path.realpath(__file__)))), # logging.FileHandler("%s/current.log" % (os.path.dirname(os.path.realpath(__file__)))),
logging.StreamHandler() # logging.StreamHandler()
]) #]
)
try: try:
logging.info("Start"); logging.info("Start");