Skip to content

Commit 53c90da

Browse files
committed
probe logs
1 parent c96c0b3 commit 53c90da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lambdas/id_sync/src/record_processor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ def process_record(event_record: Dict[str, Any]) -> Dict[str, Any]:
1616
logger.info("process_record. Processing record: %s", event_record)
1717
# Probe logger configuration to help debug missing logs in CloudWatch
1818
try:
19-
import logging as _logging
2019
logger.info(
21-
"probe: logger id=%s module=%s level=%s handlers=%d",
20+
"probe: logger id=%s module=%s level=%d handlers=%d",
2221
hex(id(logger)), getattr(logger, "__module__", None),
23-
_logging.getLevelName(logger.getEffectiveLevel()), len(logger.handlers),
22+
logger.getEffectiveLevel(), len(logger.handlers),
2423
)
2524
except Exception:
2625
# Keep probe non-fatal in production

0 commit comments

Comments
 (0)