Skip to content

Commit

Permalink
chore(typing): log debug instead of warning when type inference f…
Browse files Browse the repository at this point in the history
…ails (#57)

ref: #55
  • Loading branch information
OliverHofkens authored Aug 2, 2024
1 parent 49d0d63 commit 2d30c4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
[Unreleased]
---------------------

Changed
^^^^^^^

* Log ``debug`` instead of ``warning`` when type inference fails.


[0.10.0] - 2024-01-21
---------------------
Expand Down
2 changes: 1 addition & 1 deletion odata_query/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def infer_type(node: ast._Node) -> Optional[Type[ast._Node]]:
if isinstance(node, ast.Call):
return infer_return_type(node)

log.warning("Failed to infer type for %s", node)
log.debug("Failed to infer type for %s", node)
return None


Expand Down

0 comments on commit 2d30c4a

Please sign in to comment.