Raiff1982 commited on
Commit
37c0b8e
·
1 Parent(s): d2bacf4

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
- from fail_safe_system import log_event
4
-
5
- logger = logging.getLogger(__name__)
6
- logging.basicConfig(level=logging.INFO)
 
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)