Skip to content

Commit 03b1cb7

Browse files
committed
ProcessSpec: stop warning about "Process with no parameters"
processes without parameters is not that uncommon in context of proof of concept custom processes
1 parent 4d9d8b1 commit 03b1cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openeo_driver/processes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def to_dict_040(self) -> dict:
6464
"""Generate process spec as (JSON-able) dictionary (API 0.4.0 style)."""
6565
# TODO #47 drop this
6666
if len(self._parameters) == 0:
67-
_log.warning("Process with no parameters")
67+
_log.debug("Process with no parameters")
6868
assert self._returns is not None
6969
return {**self.extra, **{
7070
"id": self.id,
@@ -80,7 +80,7 @@ def to_dict_040(self) -> dict:
8080
def to_dict_100(self) -> dict:
8181
"""Generate process spec as (JSON-able) dictionary (API 1.0.0 style)."""
8282
if len(self._parameters) == 0:
83-
_log.warning(f"Process with no parameters: {self.id!r}")
83+
_log.debug(f"Process with no parameters: {self.id!r}")
8484
assert self._returns is not None
8585
return {**self.extra, **{
8686
"id": self.id,

0 commit comments

Comments
 (0)