Skip to content

Commit

Permalink
make variable global
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoromike committed Jun 12, 2019
1 parent 2c09610 commit 8ff6b1c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
app = create_app()
cli = FlaskGroup(app)

# if __name__ != "__main__":
# gunicorn_logger = logging.getLogger('gunicorn.error')
# app.logger.handlers = gunicorn_logger.handlers
# app.logger.setLevel(gunicorn_logger.level)
if __name__ != "__main__":
gunicorn_logger = logging.getLogger('gunicorn.error')
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(gunicorn_logger.level)


@cli.command()
Expand Down Expand Up @@ -146,6 +146,3 @@ def tests():

if __name__ == "__main__":
cli()
gunicorn_logger = logging.getLogger('gunicorn.error')
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(gunicorn_logger.level)

0 comments on commit 8ff6b1c

Please sign in to comment.