Spaces:
Sleeping
Sleeping
fix:
Browse files
infra/logger_structlog.py
CHANGED
|
@@ -6,7 +6,7 @@ import logging
|
|
| 6 |
|
| 7 |
# Don't forget to keep logs.json file meaningful.
|
| 8 |
def setup_logging(logs_path: Path | str):
|
| 9 |
-
log_file = open(logs_path, "a", encoding="utf-8")
|
| 10 |
structlog.configure(
|
| 11 |
processors = [
|
| 12 |
structlog.processors.StackInfoRenderer(), # Stack strace, showing the exact source of errors.
|
|
|
|
| 6 |
|
| 7 |
# Don't forget to keep logs.json file meaningful.
|
| 8 |
def setup_logging(logs_path: Path | str):
|
| 9 |
+
# log_file = open(logs_path, "a", encoding="utf-8")
|
| 10 |
structlog.configure(
|
| 11 |
processors = [
|
| 12 |
structlog.processors.StackInfoRenderer(), # Stack strace, showing the exact source of errors.
|