diff --git a/CHANGELOG.md b/CHANGELOG.md index b18bd50..eb70d72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Specify docker image when publishing a module +- Move from error to info the message when no event was collected from severals seconds ### Fixed - Replace ulrllib.parse.urljoin by posixpath.join in AsyncConnector - Fix tests for async version of connector. +- Fix support for boolean arguments in the json_argument method ## 1.16.0 - 2024-10-16 diff --git a/sekoia_automation/action.py b/sekoia_automation/action.py index d53539b..38aa129 100644 --- a/sekoia_automation/action.py +++ b/sekoia_automation/action.py @@ -144,7 +144,7 @@ def json_argument(self, name: str, arguments: dict, required: bool = True) -> An If `name` is inside arguments, returns the value. If `name`_path is inside arguments, returns the content of the file """ - if arguments.get(name, None): + if arguments.get(name, None) is not None: self._result_as_file = False return arguments[name] elif f"{name}_path" in arguments: diff --git a/sekoia_automation/trigger.py b/sekoia_automation/trigger.py index 9033492..0ab9765 100644 --- a/sekoia_automation/trigger.py +++ b/sekoia_automation/trigger.py @@ -414,7 +414,7 @@ def _events_alive(self) -> bool: self.log( message=f"The trigger didn't send events for {delta_seconds} seconds, " "it will be restarted.", - level="error", + level="info", ) return False