From 110a04ff7dc3e7c9b86c1a2413906a16a2bb65cb Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Tue, 14 Jul 2015 22:11:59 -0600 Subject: [PATCH] Fixed broken send() function. --- log/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/log.go b/log/log.go index f9f07b3..d4f635d 100644 --- a/log/log.go +++ b/log/log.go @@ -156,7 +156,7 @@ func Debug(c cookoo.Context, args ...interface{}) { send(c, LogDebug, args...) } -// Stack dumps a stack trace to the log. It follows the debug level. +// Stack dumps a stack trace to the log. It uses the LogDebug level. // // This limits the size of the returned stack to 4096 bytes. func Stack(c cookoo.Context, msg string) { @@ -166,7 +166,7 @@ func Stack(c cookoo.Context, msg string) { } func send(c cookoo.Context, l LogLevel, args ...interface{}) { - if Level < l { + if Level >= l { c.Log(Label[l], args...) } }