We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307e06a commit 76f8f31Copy full SHA for 76f8f31
src/memos/log.py
@@ -34,12 +34,11 @@ def _setup_logfile() -> Path:
34
35
Returns: the logfile Path
36
"""
37
- today_str = time.strftime("%Y-%m-%d", time.localtime())
38
- today_file_name = f"{today_str}.memos.log"
39
- today_file = Path(settings.MEMOS_DIR / "logs" / today_file_name)
40
- today_file.parent.mkdir(parents=True, exist_ok=True)
+ logfile = Path(settings.MEMOS_DIR / "logs" / "memos.log")
+ logfile.parent.mkdir(parents=True, exist_ok=True)
+ logfile.touch(exist_ok=True)
41
42
- return today_file
+ return logfile
43
44
45
class ContextFilter(logging.Filter):
0 commit comments