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
How are you building your logger? The crash is indicating to me that the logger itself is nil. I was able to reproduce this by creating a logger from a config with a sink to a file in / but all I had to do to avoid the nil dereference was check for an error from Config.Build():
Describe the bug
App crashes when zap tries to create a logfile in a directory where there user has no permission to write
To Reproduce
Expected behavior
Zap should crash with an "permission denied" error, not SEGV
Additional context
Similar to #390
The text was updated successfully, but these errors were encountered: