Skip to content

Commit

Permalink
Revert "log: extend Logger interface with WithValue method"
Browse files Browse the repository at this point in the history
This reverts commit 6e22e71.
  • Loading branch information
Choraden authored and mmatczuk committed Sep 7, 2023
1 parent 753084e commit 3e0d95b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type Logger interface {
Errorf(format string, args ...any)
Infof(format string, args ...any)
Debugf(format string, args ...any)
WithValue(key, value string) Logger
}

// NopLogger is a logger that does nothing.
Expand All @@ -27,7 +26,3 @@ func (l nopLogger) Infof(_ string, _ ...any) {

func (l nopLogger) Debugf(_ string, _ ...any) {
}

func (l nopLogger) WithValue(_, _ string) Logger {
return l
}

0 comments on commit 3e0d95b

Please sign in to comment.