Skip to content

Commit

Permalink
fixing some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Oct 31, 2024
1 parent 4e26e13 commit d567605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/recordlinker/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_instance(cls, uri: str) -> splunk.SplunkHECClient:
cls._instance = splunk.SplunkHECClient(uri)
return cls._instance

def __init__(self, uri = str | None, **kwargs: typing.Any) -> None:
def __init__(self, uri: str | None = None, **kwargs: typing.Any) -> None:
"""
Initialize the Splunk HEC logging handler. If the `splunk_uri` setting is
configured, create a new Splunk HEC client instance or use the existing
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_json_record(self):
mock_instance = mock_client.return_value
mock_instance.send.return_value = 200
uri = "splunkhec://token@localhost:8088?index=index&source=source"
handler = log.SplunkHecHandler(splunk_uri=uri)
handler = log.SplunkHecHandler(uri=uri)
record = logging.LogRecord(
name="test",
level=logging.INFO,
Expand All @@ -120,7 +120,7 @@ def test_non_json_record(self):
mock_instance = mock_client.return_value
mock_instance.send.return_value = 200
uri = "splunkhec://token@localhost:8088?index=index&source=source"
handler = log.SplunkHecHandler(splunk_uri=uri)
handler = log.SplunkHecHandler(uri=uri)
record = logging.LogRecord(
name="test",
level=logging.INFO,
Expand Down

0 comments on commit d567605

Please sign in to comment.