Skip to content

Commit

Permalink
fix: log errors from sendLogs with correct variable in common#Start()
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Haddlesey <[email protected]>
  • Loading branch information
haddscot committed Apr 29, 2024
1 parent a3f8ba0 commit cd05d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (l *Logger) Start(
errGroup.Go(func() error {
logErr := l.sendLogs(ctx, pipe, source, cleanupTime)
if logErr != nil {
err := fmt.Errorf("failed to send logs from pipe %s: %w", source, err)
err := fmt.Errorf("failed to send logs from pipe %s: %w", source, logErr)
debug.SendEventsToLog(DaemonName, err.Error(), debug.ERROR, 1)
return err
}
Expand Down

0 comments on commit cd05d41

Please sign in to comment.