Skip to content

Commit 46ce3fa

Browse files
committed
remove unused code
Signed-off-by: Ben Ye <[email protected]>
1 parent 8874dad commit 46ce3fa

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pkg/util/log/log.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,6 @@ func CheckFatal(location string, err error) {
123123
}
124124
}
125125

126-
// TODO(dannyk): remove once weaveworks/common updates to go-kit/log
127-
//
128-
// -> we can then revert to using Level.Gokit
129-
func LevelFilter(l string) level.Option {
130-
switch l {
131-
case "debug":
132-
return level.AllowDebug()
133-
case "info":
134-
return level.AllowInfo()
135-
case "warn":
136-
return level.AllowWarn()
137-
case "error":
138-
return level.AllowError()
139-
default:
140-
return level.AllowAll()
141-
}
142-
}
143-
144126
func HeaderMapFromContext(ctx context.Context) map[string]string {
145127
headerMap, ok := ctx.Value(headerMapContextKey).(map[string]string)
146128
if !ok {

0 commit comments

Comments
 (0)