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
1 changed files with 5 additions and 4 deletions

View File

@ -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");