mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
refactor: update FromLegacyLevel function comments
This commit is contained in:
parent
d8d5d5a94b
commit
d75fe2d0a6
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ const (
|
|||
LvlDebug = LevelDebug
|
||||
)
|
||||
|
||||
// convert from old Geth verbosity level constants
|
||||
// FromLegacyLevel converts from old Geth verbosity level constants
|
||||
// to levels defined by slog
|
||||
func FromLegacyLevel(lvl int) slog.Level {
|
||||
switch lvl {
|
||||
|
|
@ -156,7 +156,7 @@ func (l *logger) Handler() slog.Handler {
|
|||
return l.inner.Handler()
|
||||
}
|
||||
|
||||
// Write logs a message at the specified level:
|
||||
// Write logs a message at the specified level.
|
||||
func (l *logger) Write(level slog.Level, msg string, attrs ...any) {
|
||||
if !l.inner.Enabled(context.Background(), level) {
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue