Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
crimsonknave committed Dec 4, 2024
1 parent 10ea0dd commit 6209b3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions annotated_logger/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ def filter(self, record: logging.LogRecord) -> bool:
for k, v in record.__dict__.items()
if k not in self.base_attributes and k not in self.attributes_to_exclude
}
record.__dict__["added_attributes"] = added_attributes
record.added_attributes = added_attributes
name = record.levelname.lower()
if name == "info": # pragma: no cover
name = "notice"
record.__dict__["github_annotation"] = f"{name}::"
record.github_annotation = f"{name}::"

return True

Expand Down

0 comments on commit 6209b3a

Please sign in to comment.