unioslo/mreg-cli

`log. _prefix_from_stack()` needs a defined behaviour.

Opened this issue · 0 comments

def _prefix_from_stack() -> str:
is supposed (?) to help debug where a warning or error happens in the code, but due to its filtering it rarely actually reports anything useful.

The question is if this stack parsing should be exposed to the users or if it should be logged or available as debug information. Ideally we probably want messages back to the user to make sense for the user if it is something they can do differently. Right now, even warnings such as host not found tries to provide information from the stack and that seems counterproductive to say the least.