Skip to content

Commit

Permalink
fix wrong if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
emaele committed Dec 1, 2021
1 parent 34b7262 commit efe6240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datadog.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (l *StandardLogger) startLogRoutineListener() {
newLog.Message = fmt.Sprintf("OFFLINE LOG at %v | %s", time.Now().String(), newLog.Message)

logBytes, offsaveErr = newLog.Bytes()
if err != nil {
if offsaveErr != nil {
l.SendWarnLog(fmt.Sprintf("error converting log to bytes %v", offsaveErr), nil)
continue
}
Expand Down

0 comments on commit efe6240

Please sign in to comment.