mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
refactor: update GlogHandler.Handle function comments
This commit is contained in:
parent
d4b81f0e08
commit
3e608f9372
1 changed files with 2 additions and 2 deletions
|
|
@ -168,8 +168,8 @@ func (h *GlogHandler) WithGroup(name string) slog.Handler {
|
|||
panic("not implemented")
|
||||
}
|
||||
|
||||
// Log implements Handler.Log, filtering a log record through the global, local
|
||||
// and backtrace filters, finally emitting it if either allow it through.
|
||||
// Handle implements slog.Handler.Handle, filtering a log record through the global, local
|
||||
// and backtrace filters, finally emitting it if either allows it through.
|
||||
func (h *GlogHandler) Handle(_ context.Context, r slog.Record) error {
|
||||
// If the global log level allows, fast track logging
|
||||
if slog.Level(h.level.Load()) <= r.Level {
|
||||
|
|
|
|||
Loading…
Reference in a new issue