Skip to content

Commit

Permalink
Fixed broken send() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Jul 15, 2015
1 parent f7d2bd0 commit 110a04f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log/log.go
Expand Up @@ -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) {
Expand All @@ -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...)
}
}
Expand Down

0 comments on commit 110a04f

Please sign in to comment.