Skip to content

Commit

Permalink
chore: log more errors of ssl generate task (#1112)
Browse files Browse the repository at this point in the history
(cherry picked from commit 995a798)
  • Loading branch information
tanmoysrt authored and mergify[bot] committed Dec 1, 2024
1 parent 3099231 commit 539abc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swiftwave_service/worker/process_ssl_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func (m Manager) SSLGenerate(request SSLGenerateRequest, ctx context.Context, _
fullChain, err := m.ServiceManager.SslManager.ObtainCertificate(domain.Name, domain.SSLPrivateKey)
if err != nil {
// don' requeue, if anything happen user can anytime re-request for certificate
logger.CronJobLoggerError.Println("Failed to obtain certificate", err.Error(), "\nWill retry later")
return nil
}
// store certificate
Expand All @@ -72,6 +73,7 @@ func (m Manager) SSLGenerate(request SSLGenerateRequest, ctx context.Context, _
// update domain
err = domain.Update(ctx, dbWithoutTx)
if err != nil {
logger.CronJobLoggerError.Println("Failed to update domain", domain.Name, "with SSL status", domain.SSLStatus, err.Error(), "\nWill retry later")
return err
}
// fetch all proxy servers
Expand Down

0 comments on commit 539abc0

Please sign in to comment.