Revert "Reapply "log to file""

This reverts commit 1983508fb1.
This commit is contained in:
Kiara Grouwstra 2025-04-12 14:36:21 +02:00
parent 1983508fb1
commit 60093212d7
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
4 changed files with 1 additions and 12 deletions

1
.gitignore vendored
View file

@ -12,4 +12,3 @@ result*
*screenshot.png
output
todo
log/

View file

@ -31,7 +31,6 @@ in
DATABASE_URL = "sqlite:///${toString ./src}/db.sqlite3";
# locally: use a fixed relative reference, so we can use our newest files without copying to the store
REPO_DIR = toString ../.;
LOGGING_DIR = "../log";
};
shellHook = ''
ln -sf ${sources.htmx}/dist/htmx.js src/panel/static/htmx.min.js

View file

@ -30,7 +30,6 @@ let
(builtins.toFile "extra-settings.py" cfg.extra-settings)
];
REPO_DIR = import ../../launch/tf-env.nix { inherit lib pkgs; };
LOGGING_DIR = "/var/log/${name}";
SSH_PRIVATE_KEY_FILE = config.age.secrets.panel-ssh-key.path;
};

View file

@ -176,9 +176,6 @@ COMPRESS_PRECOMPILERS = [
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
logging_dir = env["LOGGING_DIR"]
os.makedirs(logging_dir, mode=0o700, exist_ok=True)
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
@ -217,15 +214,10 @@ LOGGING = {
"filters": ["require_debug_false"],
"class": "django.utils.log.AdminEmailHandler",
},
"file": {
"level": "INFO",
"class": "logging.FileHandler",
"filename": f"{logging_dir}/info.log",
},
},
"loggers": {
"": {
"handlers": ["console", "file"],
"handlers": ["console"],
"level": "DEBUG" if DEBUG else "INFO",
},
},