Skip to content

Commit

Permalink
chore: remove timestamp from warnings.log (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nora-Olivia-Ammann committed Mar 22, 2024
1 parent 5825b3c commit 8fb0842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -63,4 +63,4 @@ testdata/preprocessed_files/
testdata/bitstreams/nested
processing_result_*.pkl
processed_files.txt
/warnings-*.log
/warnings.log
4 changes: 1 addition & 3 deletions src/dsp_tools/utils/logger_config.py
@@ -1,4 +1,3 @@
from datetime import datetime
from pathlib import Path

from loguru import logger
Expand All @@ -20,7 +19,6 @@ def logger_config() -> None:
text_format = "<level>{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {message}</level>"
rotation_size = "100 MB"
retention_number = 30
timestamp_str = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")

logger.add(
sink=logger_savepath,
Expand All @@ -32,7 +30,7 @@ def logger_config() -> None:
)

logger.add(
sink=Path(f"warnings-{timestamp_str}.log"),
sink=Path("warnings.log"),
level="WARNING",
format=text_format,
backtrace=False,
Expand Down

0 comments on commit 8fb0842

Please sign in to comment.