Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion annotated_logger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def annotate_logs(
*,
success_info: bool = True, # pragma: no mutate
pre_call: PreCall[S2, P2] = None,
post_call: PostCall[S2, P2] = None,
post_call: PostCall[S2, P3] = None,
_typing_self: Literal[False],
_typing_requested: Literal[True],
provided: Literal[True],
Expand Down
6 changes: 3 additions & 3 deletions annotated_logger/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def filter(self, _record: logging.LogRecord) -> bool:
def uncaught_exception(
self, exception: Exception, logger: AnnotatedAdapter
) -> AnnotatedAdapter:
"""Handle an uncaught excaption."""
"""Handle an uncaught exception."""
if "success" not in logger.filter.annotations:
logger.annotate(success=False)
if "exception_title" not in logger.filter.annotations:
Expand Down Expand Up @@ -68,7 +68,7 @@ class FieldNotPresentError(Exception):
"""Exception for a field that is supposed to be renamed, but is not present."""

def __init__(self, *, strict: bool = False, **kwargs: str) -> None:
"""Store the list of names to rename and pre/post fixs."""
"""Store the list of names to rename and pre/post fixes."""
self.targets = kwargs
self.strict = strict

Expand Down Expand Up @@ -104,7 +104,7 @@ class NameAdjusterPlugin(BasePlugin):
"""Plugin that prevents name collisions with splunk field names."""

def __init__(self, names: list[str], prefix: str = "", postfix: str = "") -> None:
"""Store the list of names to rename and pre/post fixs."""
"""Store the list of names to rename and pre/post fixes."""
self.names = names
self.prefix = prefix
self.postfix = postfix
Expand Down