Skip to content

Commit

Permalink
More logs into Django for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryCarrade committed Apr 8, 2021
1 parent ed0d0af commit b9567b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ allowed_hosts = [
]

contents_dir = "/home/hawk/data"
logs_dir = "/var/log/hawk"

[databases.default]
host = ""
Expand Down
9 changes: 8 additions & 1 deletion hawk/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@
},
'root': {
'handlers': ['file'],
'level': 'DEBUG',
'level': 'WARNING',
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': False,
},
}
}

STATIC_ROOT = CONTENTS_DIR / "static"
Expand Down

0 comments on commit b9567b6

Please sign in to comment.