Skip to content

Commit

Permalink
Missing these two...
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Dec 3, 2024
1 parent d414d65 commit 06608a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clp_logging/auto_generated_kv_pairs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def generate(
self._buf[ZONED_TIMESTAMP_KEY][ZONED_TIMESTAMP_UTC_EPOCH_MS_KEY] = timestamp
self._buf[ZONED_TIMESTAMP_KEY][ZONED_TIMESTAMP_TZ_KEY] = timezone

# WOTE: We don't serialize all the metadata given by `record`. Currently, we only add the
# NOTE: We don't serialize all the metadata given by `record`. Currently, we only add the
# following metadata into auto-generated kv pairs:
# - log level
# - source context
Expand Down
2 changes: 1 addition & 1 deletion tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def _log(self, level: int, kv_pairs: Dict[str, Any]) -> None:
level_name: str = logging.getLevelName(level)
path: Path = Path(__file__).resolve()
curr_frame: Optional[FrameType] = inspect.currentframe()
# NOTE: this line must be right before the actual logging statement
# NOTE: This line must be right before the actual logging statement
line: Optional[int] = curr_frame.f_lineno + 1 if curr_frame is not None else None
self._logger.log(level, kv_pairs)
expected: ExpectedLogEvent = ExpectedLogEvent(
Expand Down

0 comments on commit 06608a7

Please sign in to comment.