Level.String panics if Level == InvalidLevel
Aperta
- Lingua principale
- Go
- Stelle
- 1.4k
- Fork
- 110
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
hi,
the method `LeveL.String` panics when `Level==InvalidLevel`.
https://github.com/apex/log/blob/master/levels.go#L44
https://github.com/apex/log/blob/master/levels.go#L17
I suggest to add a statement before the slice access so that this pseudo value does not appear in the `levelNames` / `levelStrings` variables.
It could return an empty string or something like `invalid`
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.