logoalt Hacker News

kgklxksnrbyesterday at 10:40 AM1 replyview on HN

Logging warnings are cowardly, you just push the decision to the log consumer to decide if the error should be acted on.

Warnings are just errors that no one wants to deal with.


Replies

bluGillyesterday at 1:35 PM

Warnings are for where you expect someplace else to know/log if it really is an error but it might also be normal. You might log why a file io operation failed: if the caller recovers somehow it isn't an errer, but if they can't they log an error and when investigating the warning gives the detail you need to figure it out.

show 1 reply