Hi when I am raising a FAIL signal the logger logs...
# ask-community
d
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
yes, by raising an exception rather than a signal
e.g.
raise ValueError()