apex / apex/log

Level.String panics if Level == InvalidLevel

オープン
#75 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
1.4k
フォーク
110
PR マージ指標
30日以内にマージされた PR はありません

説明

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`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。