We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e2e62d + 71fd238 commit 8682997Copy full SHA for 8682997
1 file changed
log/log.go
@@ -103,6 +103,9 @@ func (l Logger) Close() {
103
// All the values of arg are stringified and concatenated without any strings.
104
// If no args are provided err.Error() is used as the log message.
105
func (l Logger) Error(err error, args ...interface{}) {
106
+ if err == nil {
107
+ return
108
+ }
109
if ok := os.Getenv("ROLLBAR_TOKEN"); ok != "" {
110
rollbar.Notify(err, args)
111
}
0 commit comments