kopf icon indicating copy to clipboard operation
kopf copied to clipboard

Adjust log level of `TemporaryError`possible?

Open Schille opened this issue 3 years ago • 0 comments

Keywords

temporaryerror, retry, handler

Problem

Thanks for this great framework! :+1:

I am using TemporaryError throughout my operator quite a lot. I have a few long-running tasks which I don't want to eagerly watch, so I raise TemporaryError if certain conditions aren't met (yet). Basically, just like it's documented here: https://kopf.readthedocs.io/en/stable/errors/#temporary-errors

However, now I see tons of [ERROR ] .. failed temporarily: ... messages in the log which are semantically not correct and also a bit verbose. So I wonder if it is possible to adjust the log level of those "errors" (to let's say INFO) or mute them altogether?

Schille avatar Nov 21 '22 15:11 Schille