Skip to content

Commit 4f096ba

Browse files
chore: log more errors of ssl generate task (#1112) (#1113)
(cherry picked from commit 995a798) Co-authored-by: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com>
1 parent 3099231 commit 4f096ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

swiftwave_service/worker/process_ssl_request.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func (m Manager) SSLGenerate(request SSLGenerateRequest, ctx context.Context, _
6161
fullChain, err := m.ServiceManager.SslManager.ObtainCertificate(domain.Name, domain.SSLPrivateKey)
6262
if err != nil {
6363
// don' requeue, if anything happen user can anytime re-request for certificate
64+
logger.CronJobLoggerError.Println("Failed to obtain certificate", err.Error(), "\nWill retry later")
6465
return nil
6566
}
6667
// store certificate
@@ -72,6 +73,7 @@ func (m Manager) SSLGenerate(request SSLGenerateRequest, ctx context.Context, _
7273
// update domain
7374
err = domain.Update(ctx, dbWithoutTx)
7475
if err != nil {
76+
logger.CronJobLoggerError.Println("Failed to update domain", domain.Name, "with SSL status", domain.SSLStatus, err.Error(), "\nWill retry later")
7577
return err
7678
}
7779
// fetch all proxy servers

0 commit comments

Comments
 (0)