Skip to content

Commit

Permalink
Merge pull request #22 from certego/remove_log
Browse files Browse the repository at this point in the history
removed error logging in filters.py
  • Loading branch information
ManofWax committed Mar 5, 2024
2 parents 091bcf0 + 7145ec7 commit 5b33605
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit 5b33605

Please sign in to comment.