Skip to content

Commit

Permalink
[SVLS-4030] Make retryable logs debug, but add warn with fatal error (#…
Browse files Browse the repository at this point in the history
…20754)

[SVLS-4030] Make retryable logs debug, but add warn with fatal error
  • Loading branch information
astuyve committed Feb 5, 2024
1 parent a23db14 commit 2398327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/logs/client/http/destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (d *Destination) sendAndRetry(payload *message.Payload, output chan *messag
if err != nil {
metrics.DestinationErrors.Add(1)
metrics.TlmDestinationErrors.Inc()
log.Warnf("Could not send payload: %v", err)
log.Debugf("Could not send payload: %v", err)
}

if err == context.Canceled {
Expand Down
2 changes: 1 addition & 1 deletion pkg/serverless/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (d *Daemon) TriggerFlush(isLastFlushBeforeShutdown bool) {

timedOut := waitWithTimeout(&wg, FlushTimeout)
if timedOut {
log.Debug("Timed out while flushing")
log.Warn("Timed out while flushing")
d.flushStrategy.Failure(time.Now())
} else {
log.Debug("Finished flushing")
Expand Down

0 comments on commit 2398327

Please sign in to comment.