Skip to content

Commit

Permalink
fix:logspam
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 4, 2025
1 parent 618298f commit b957f32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
python-version: [3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pipaudit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
python-version: [3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.8, 3.9, "3.10" ]
python-version: [3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion ovos_plugin_manager/templates/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ def retrieve_from_corpus(self, query: str, k: int = 3, lang: Optional[str] = Non
"""return top_k matches from indexed corpus"""
res = []
for doc, score in self.query(query, lang, k=k):
LOG.debug(f"Rank {len(res) + 1} (score: {score}): {doc}")
# this log can be very spammy, only enable for debug during dev
#LOG.debug(f"Rank {len(res) + 1} (score: {score}): {doc}")
if self.config.get("min_conf"):
if score >= self.config["min_conf"]:
res.append((score, doc))
Expand Down

0 comments on commit b957f32

Please sign in to comment.