Merge pull request #237 from Pythagora-io/feature/move-pythagora-log-to-data-for-backups

Move pythagora.log to data dir
This commit is contained in:
LeonOstrez
2025-06-25 15:29:54 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@
"log": {
"level": "DEBUG",
"format": "%(asctime)s %(levelname)s [%(name)s] %(message)s",
"output": "pythagora.log"
"output": "data/pythagora.log"
},
"db": {
"url": "sqlite+aiosqlite:///data/database/pythagora.db",

View File

@@ -220,7 +220,7 @@ class LogConfig(_StrictModel):
description="Logging format",
)
output: Optional[str] = Field(
"pythagora.log",
"data/pythagora.log",
description="Output file for logs (if not specified, logs are printed to stderr)",
)
max_lines: int = Field(