Skip to content

Commit

Permalink
autoborrow: always log the message
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 4, 2024
1 parent 4452b2d commit 826b858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/strategy/autoborrow/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,9 @@ func (s *Strategy) marginAlertWorker(ctx context.Context, alertInterval time.Dur
}

func (s *Strategy) postLiveNoteMessage(obj livenote.Object, alert *slackalert.SlackAlert, msgf string, args ...any) {
log.Infof(msgf, args...)

if alert == nil {
log.Infof(msgf, args...)
return
}

Expand Down

0 comments on commit 826b858

Please sign in to comment.