Skip to content

Commit 6209b3a

Browse files
committed
More cleanup
1 parent 10ea0dd commit 6209b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

annotated_logger/plugins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ def filter(self, record: logging.LogRecord) -> bool:
162162
for k, v in record.__dict__.items()
163163
if k not in self.base_attributes and k not in self.attributes_to_exclude
164164
}
165-
record.__dict__["added_attributes"] = added_attributes
165+
record.added_attributes = added_attributes
166166
name = record.levelname.lower()
167167
if name == "info": # pragma: no cover
168168
name = "notice"
169-
record.__dict__["github_annotation"] = f"{name}::"
169+
record.github_annotation = f"{name}::"
170170

171171
return True
172172

0 commit comments

Comments
 (0)