Disable stopping on first failure

This commit is contained in:
Melon 2024-09-21 14:43:08 +01:00
parent d0fc76cd73
commit 7f24d37e31
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -214,8 +214,7 @@ func (s *Service) renewalRoutine(wg *sync.WaitGroup) {
Logger.Info("Doing quick certificate check before starting...") Logger.Info("Doing quick certificate check before starting...")
err := s.renewalCheck() err := s.renewalCheck()
if err != nil { if err != nil {
Logger.Info("Certificate check, should not error first try: ", "err", err) Logger.Info("Certificate check, should not error first try", "err", err)
return
} }
// Logging or something // Logging or something
@ -235,7 +234,7 @@ func (s *Service) renewalRoutine(wg *sync.WaitGroup) {
// run a renewal check and log errors, but ignore ErrAlreadyRenewing // run a renewal check and log errors, but ignore ErrAlreadyRenewing
err := s.renewalCheck() err := s.renewalCheck()
if err != nil && !errors.Is(err, ErrAlreadyRenewing) { if err != nil && !errors.Is(err, ErrAlreadyRenewing) {
Logger.Info("Certificate check, an error occurred: ", "err", err) Logger.Info("Certificate check, an error occurred", "err", err)
} }
}() }()
} }