From 5ca9e3d0da47c5a06b02b6c8ffbc3e8706900a08 Mon Sep 17 00:00:00 2001 From: Ignasi Barrera Date: Wed, 6 Mar 2024 18:47:02 +0100 Subject: [PATCH] review comments --- cmd/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 8e1dcfb..baa3c70 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -50,6 +50,10 @@ func main() { } return nil }) + fipsLog := run.NewPreRunner("fips", func() error { + internal.LogFIPS() + return nil + }) g := run.Group{Logger: internal.Logger(internal.Default)} @@ -59,6 +63,7 @@ func main() { logging, // Set up the logging system secretCtrl, // watch for secret updates and update the configuration configLog, // log the configuration + fipsLog, // log whether FIPS is enabled jwks, // start the JWKS provider sessions, // start the session store authzServer, // start the server @@ -66,8 +71,6 @@ func main() { &signal.Handler{}, // handle graceful termination ) - internal.LogFIPS() // Print the FIPS status - if err := g.Run(); err != nil { fmt.Printf("Unexpected exit: %v\n", err) os.Exit(-1)