google / google/logger

File already be closed

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
890
Forks
80
PR merge metrics
No merged PRs in 30d

Description

When I try to run the demo in the README.md, I found a little mistake.
If I replace ```defer lf.Close()``` with
```
defer func() {
if err := lf.Close(); err != nil {
panic(err)
}
}
```
I will get err msg like this: ``` file already be closed ```!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.