aboutsummaryrefslogtreecommitdiff
path: root/middleware/etcd/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/etcd/debug.go')
-rw-r--r--middleware/etcd/debug.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/middleware/etcd/debug.go b/middleware/etcd/debug.go
index 58e896680..d5dfd6811 100644
--- a/middleware/etcd/debug.go
+++ b/middleware/etcd/debug.go
@@ -12,11 +12,12 @@ const debugName = "o-o.debug."
// isDebug checks if name is a debugging name, i.e. starts with o-o.debug.
// it return the empty string if it is not a debug message, otherwise it will return the
-// name with o-o.debug. stripped off.
+// name with o-o.debug. stripped off. Must be called with name lowercased.
func isDebug(name string) string {
if len(name) == len(debugName) {
return ""
}
+ name = strings.ToLower(name)
debug := strings.HasPrefix(name, debugName)
if !debug {
return ""