Level.String panics if Level == InvalidLevel
Đang mở
- Ngôn ngữ chính
- Go
- Star
- 1.4k
- Fork
- 110
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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`
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.