Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed error logging in filters.py #22

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## 2.2.x
### 2.2.6
#### Bugfix
* Removed error logging in *filters.py*
### 2.2.5
#### Bugfix
* Fixed version in *setup.py*
Expand Down
6 changes: 3 additions & 3 deletions routingfilter/filters/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def _check_network(self, ip_address: str) -> bool:
if ip_address in IP(value):
return True
except ValueError as e:
self.logger.error(f"Error in parsing IP address (value error): {e}. ")
self.logger.debug(f"Error in parsing IP address (value error): {e}. ")
except TypeError as e:
self.logger.error(f"Error in parsing IP address (type error): {e}. ")
self.logger.debug(f"Error in parsing IP address (type error): {e}. ")
return False


Expand Down Expand Up @@ -444,7 +444,7 @@ def _compare(self, value: float) -> bool:
term = float(term)
value = float(value)
except ValueError as e:
self.logger.error(f"Error in parsing value to float in comparator filter: {e}. ")
self.logger.debug(f"Error in parsing value to float in comparator filter: {e}. ")
return False
match self._comparator_type:
case "GREATER":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="routingfilter",
version="2.2.5",
version="2.2.6",
packages=find_packages(include=["routingfilter", "routingfilter.*"]),
include_package_data=True,
install_requires=["IPy~=1.1", "macaddress~=2.0.2"],
Expand Down
Loading