We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8874dad commit 46ce3faCopy full SHA for 46ce3fa
pkg/util/log/log.go
@@ -123,24 +123,6 @@ func CheckFatal(location string, err error) {
123
}
124
125
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
-
144
func HeaderMapFromContext(ctx context.Context) map[string]string {
145
headerMap, ok := ctx.Value(headerMapContextKey).(map[string]string)
146
if !ok {
0 commit comments