Skip to content
Permalink
Browse files

Add trace level

Handled trace level from logrus and reports to rollbar
as debug level.

Fixes #18
  • Loading branch information...
ferhatelmas committed Sep 19, 2019
1 parent 5a80cf6 commit 9af5bc1316a6dc62fdbd34640a263ab5bb54e806
Showing with 2 additions and 0 deletions.
  1. +2 −0 hook.go
@@ -96,6 +96,8 @@ func (r *Hook) report(entry *logrus.Entry, cause error, m map[string]interface{}
r.Client.MessageWithExtras(rollbar.INFO, entry.Message, m)
case level == logrus.DebugLevel:
r.Client.MessageWithExtras(rollbar.DEBUG, entry.Message, m)
case level == logrus.TraceLevel:
r.Client.MessageWithExtras(rollbar.DEBUG, entry.Message, m)
}
}

0 comments on commit 9af5bc1

Please sign in to comment.
You can’t perform that action at this time.