diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-06-09 11:18:55 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-06-09 11:18:55 +0200 |
commit | 8630f34354813fffbe9d4ab617d4a8ab96822855 (patch) | |
tree | ac18d85c8f309a35bbde1dcc31d4b672cae6b6cd /example_project | |
parent | e234afa8908d80ad50272caa28e0660fee638e42 (diff) | |
download | Ishtar-8630f34354813fffbe9d4ab617d4a8ab96822855.tar.bz2 Ishtar-8630f34354813fffbe9d4ab617d4a8ab96822855.zip |
Fix default log settings for dev
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index efad5af22..b288992a4 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -346,6 +346,10 @@ PROJECT_SLUG = locals().get("PROJECT_SLUG", "default") if LOGFILE: LOGGING["handlers"]["logfile"]["filename"] = LOGFILE +elif DEBUG: + LOGGING["handlers"]["logfile"]["filename"] = ( + ROOT_PATH + "log-" + PROJECT_SLUG + ".log" + ) else: LOGGING["handlers"]["logfile"]["filename"] = ( "/var/log/django/ishtar-" + PROJECT_SLUG + ".log" |