nolar / kopf

A Python framework to write Kubernetes operators in just a few lines of code

Home Page:https://kopf.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust log level of `TemporaryError`possible?

Schille opened this issue Β· comments

Keywords

temporaryerror, retry, handler

Problem

Thanks for this great framework! πŸ‘

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?