Skip to content

Commit

Permalink
fix/log_spam (#251)
Browse files Browse the repository at this point in the history
```
2024-06-04 23:54:39.764 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:39.764 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:39.931 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:39.931 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.072 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.072 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.072 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.073 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.073 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.073 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.075 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.075 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.308 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.322 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.325 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.328 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.331 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.336 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.339 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.343 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.346 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.350 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.353 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.356 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.359 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.363 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.366 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.369 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.372 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.376 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.379 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.382 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.386 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.389 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.392 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.395 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.399 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.402 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.405 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.408 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.412 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.421 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.423 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:40.426 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:40.436 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.360 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:41.401 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.404 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.407 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.410 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.413 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.417 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.420 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.423 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.426 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.429 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.432 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.435 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.438 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.441 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.444 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.447 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.451 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 5
2024-06-04 23:54:41.962 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.234 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.362 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.753 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.754 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.755 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.755 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.755 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.761 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:42.762 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:43.162 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:43.466 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:43.875 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:44.161 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:44.162 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:44.162 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:44.163 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:44.163 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
2024-06-04 23:54:44.164 - skills - ovos_utils.parse:fuzzy_match:41 - DEBUG - matching strategy: 1
```
  • Loading branch information
JarbasAl authored Jun 4, 2024
1 parent 18940e2 commit d2fc17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_utils/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def fuzzy_match(x, against, strategy=MatchStrategy.SIMPLE_RATIO):
down to 0.0 for no match at all.
"""
strategy = _validate_matching_strategy(strategy)
LOG.debug(f"matching strategy: {strategy}")
# LOG.debug(f"matching strategy: {strategy}")
if strategy == MatchStrategy.RATIO:
score = rapidfuzz.fuzz.ratio(x, against) / 100
elif strategy == MatchStrategy.PARTIAL_RATIO:
Expand Down

0 comments on commit d2fc17d

Please sign in to comment.