Spaces:
Runtime error
Runtime error
log eror fix
Browse files
__pycache__/fail_safe_system.cpython-311.pyc
ADDED
Binary file (8.43 kB). View file
|
|
utils/__pycache__/logger.cpython-311.pyc
CHANGED
Binary files a/utils/__pycache__/logger.cpython-311.pyc and b/utils/__pycache__/logger.cpython-311.pyc differ
|
|
utils/logger.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import logging
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
logging.
|
|
|
1 |
import logging
|
2 |
+
from datetime import datetime
|
3 |
|
4 |
+
def log_event(event_type: str, details: dict):
|
5 |
+
timestamp = datetime.utcnow().isoformat()
|
6 |
+
log_message = f"[{event_type}] {timestamp} - {details}"
|
7 |
+
logging.info(log_message)
|