Add startup error shutdown message to log

pull/1751/head
Herman Slatman 2 months ago
parent f02d4546a9
commit bbb80cde16
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -482,6 +482,7 @@ func (ca *CA) Run() error {
// some part of the configuration not being correct. This case is
// handled by stopping the CA in its entirety.
if !errors.Is(err, http.ErrServerClosed) {
log.Println("shutting down due to startup error ...")
if stopErr := ca.Stop(); stopErr != nil {
err = fmt.Errorf("failed stopping CA after error occurred: %w: %w", err, stopErr)
} else {

Loading…
Cancel
Save