From 0112faa3ca8e199f6a3e9ba0ab6a89d1b9eade10 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Jun 2023 12:10:55 +0200 Subject: đŸ”§ do not put debug log in root path on Debian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example_project/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example_project/settings.py') diff --git a/example_project/settings.py b/example_project/settings.py index 95abc793e..55bc92465 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -381,7 +381,7 @@ PROJECT_SLUG = locals().get("PROJECT_SLUG", "default") if LOG_FILE: LOGGING["handlers"]["logfile"]["filename"] = LOG_FILE -elif DEBUG: +elif DEBUG and EXTRA_VERSION != "debian": LOGGING["handlers"]["logfile"]["filename"] = ( ROOT_PATH + "log-" + PROJECT_SLUG + ".log" ) -- cgit v1.2.3