Skip to content

Commit

Permalink
doc string typo and change default to re:.*
Browse files Browse the repository at this point in the history
  • Loading branch information
horheynm committed Jan 26, 2024
1 parent 35e8552 commit 58e74e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/deepsparse/loggers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class LoggingConfig(BaseModel):
)

system: Dict[str, List[TargetConfig]] = Field(
default={".*": [TargetConfig()]},
default={"re:.*": [TargetConfig()]},
description="Default python logging module logger",
)

Expand Down
5 changes: 4 additions & 1 deletion src/deepsparse/loggers/filters/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ def is_match_found(
:return: bool: True if a match is found, False otherwise.
Examples:
>>> is_match_found("apple", "apple pie")
>>> is_match_found("apple", "apple")
True
>>> is_match_found("apple", "apple pie")
False
>>> is_match_found("cherry", "apple pie")
False
Expand Down
2 changes: 1 addition & 1 deletion tests/deepsparse/loggers/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_generates_default_json():
name: PythonLogger
handler: null # None in python
system:
".*":
"re:.*":
- func: identity
freq: 1
uses:
Expand Down

0 comments on commit 58e74e6

Please sign in to comment.