Skip to content

Commit

Permalink
Update worker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
filak committed Oct 20, 2023
1 parent ee46695 commit 0cd837b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask-app/application/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def create_app(debug=False, logger=None, port=5903,
if logger:
app.logger = logger

if logger:
if not app.debug:
file_handler = logging.FileHandler(mtu.get_instance_dir(app, 'logs/mtw_worker.log'))
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s: %(message)s '))
Expand Down

0 comments on commit 0cd837b

Please sign in to comment.