gopherdata / gopherdata/gophernotes

zerolog: could not write event: write |1: file already closed

Aperta
#167 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
4k
Fork
264
Merge medio
7g 21h
PR unite (30g)
1

Descrizione

I'm using zerolog in my package and when I try to use it within gophernotes, I get the following error every time it is used:
```
zerolog: could not write event: write |1: file already closed
```

The logger itself is constructed using a ConsoleWriter that writes to os.Stderr. I'm guessing that gophernotes does something to swap out os.Stderr so that it writes to the notebook rather then the terminal where it was started, but I'm not sure how to account for this in my code.
```
zerolog.New(ConsoleWriter{Out: os.Stderr})
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.