Skip to content

Commit

Permalink
Update gunicorn.conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed Nov 27, 2024
1 parent 914baa9 commit 71126c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#example: https://github.com/benoitc/gunicorn/blob/master/gunicorn/glogging.py
if os.getenv('USE_DOCKER_LOGS') == 'yes':
accesslog = "/data/gunicorn.access.log"
loglevel = os.getenv.get('LOG_LEVEL') or 'info'
loglevel = os.getenv('LOG_LEVEL') or 'info'
else:
#accesslog = "/data/gunicorn.access.log"
#errorlog = "/data/gunicorn.error.log"
Expand All @@ -23,13 +23,13 @@
"root": {"level": "info", "handlers": ["error_file"]},
'loggers': {
"gunicorn.error": {
"level": os.getenv.get('LOG_LEVEL') or 'info',
"level": os.getenv('LOG_LEVEL') or 'info',
"handlers": ["error_file"],
"propagate": False,
"qualname": "gunicorn.error"
},
"gunicorn.access": {
"level": os.getenv.get('LOG_LEVEL') or 'info',
"level": os.getenv('LOG_LEVEL') or 'info',
"handlers": ["access_file"],
"propagate": False,
"qualname": "gunicorn.access"
Expand Down

0 comments on commit 71126c5

Please sign in to comment.