From 3e0d95b6a0d66b423e494cd8672cbd2867222cfa Mon Sep 17 00:00:00 2001 From: Hubert Grochowski Date: Wed, 6 Sep 2023 16:46:00 +0200 Subject: [PATCH] Revert "log: extend Logger interface with WithValue method" This reverts commit 6e22e710d30715caf3a6ce602820ef68c8e4eef6. --- log/log.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/log/log.go b/log/log.go index ec06d353..d02e93a7 100644 --- a/log/log.go +++ b/log/log.go @@ -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. @@ -27,7 +26,3 @@ func (l nopLogger) Infof(_ string, _ ...any) { func (l nopLogger) Debugf(_ string, _ ...any) { } - -func (l nopLogger) WithValue(_, _ string) Logger { - return l -}