logoalt Hacker News

bqmjjx0kaclast Saturday at 5:41 PM1 replyview on HN

I would log a warning when an attempt fails, and an error when the final attempt fails.


Replies

mewpmewp2last Saturday at 5:57 PM

You are not the OP, but I think I was trying to point out this example case in relation to their descriptions of Error/Warnings.

This scenario may or may not yield in data/state loss, it may also be something that you, yourself can't immediately fix. And if it's temporary, what is the point of creating an issue and prioritizing.

I guess my point is that to any such categorization of errors or warnings there are way too many counter examples to be able to describe them like that.

So I'd usually think that Errors are something that I would heuristically want to quickly react to and investigate (e.g. being paged, while Warnings are something I would periodically check in (e.g. weekly).

show 1 reply