https://prefect.io logo
d

Daniel Nilsen

05/16/2022, 12:48 PM
Hi when I am raising a FAIL signal the logger logs with the INFO level. it is possible to get it to log with the ERROR level instead?
Copy code
raise signals.FAIL(message=f"Task failed") # This should log with ERROR level, not INFO
a

Anna Geller

05/16/2022, 12:53 PM
yes, by raising an exception rather than a signal
e.g.
raise ValueError()
4 Views