You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we log errors using %w but the error is actually not wrapped to contain the trace, the error message is actually not logged. A pattern that we could use is to:
Always log the error with %v at the deepest point in the stack (when it's generated), and wrap it here
Log again in the highest point in the stack using %w
The text was updated successfully, but these errors were encountered:
When we log errors using
%w
but the error is actually not wrapped to contain the trace, the error message is actually not logged. A pattern that we could use is to:%v
at the deepest point in the stack (when it's generated), and wrap it here%w
The text was updated successfully, but these errors were encountered: