Merge pull request #7 from trwnh/patch-2

Fix: Remove strict "is True" check
This commit is contained in:
Lili (Lin) Pavelů 2022-12-05 11:22:58 +01:00 committed by GitHub
commit 99bdcc16cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def create_app(test_config=None):
app.config.from_pyfile('redeems.py', silent=True)
# Make logging work for gunicorn-ran instances of tlapbot.
if app.config['GUNICORN'] is True:
if app.config['GUNICORN']:
gunicorn_logger = logging.getLogger('gunicorn.error')
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(gunicorn_logger.level)