From bbb80cde166eea205853835264bdcb3fe9a4e1df Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Tue, 5 Mar 2024 15:34:13 +0100 Subject: [PATCH] Add startup error shutdown message to log --- ca/ca.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ca/ca.go b/ca/ca.go index 23cc85f4..6967ede9 100644 --- a/ca/ca.go +++ b/ca/ca.go @@ -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 {