diff --git a/cmd/dex/serve.go b/cmd/dex/serve.go index 6164dabb..4f5f967c 100644 --- a/cmd/dex/serve.go +++ b/cmd/dex/serve.go @@ -193,6 +193,8 @@ func runServe(options serveOptions) error { if err != nil { return fmt.Errorf("failed to initialize storage: %v", err) } + defer s.Close() + logger.Infof("config storage: %s", c.Storage.Type) if len(c.StaticClients) > 0 {