From 0fb9c1bcc7a00efd0b65671c5f100ba32bf1489d Mon Sep 17 00:00:00 2001 From: Adrian Dombeck Date: Tue, 14 Jan 2025 15:52:49 +0100 Subject: [PATCH] Initialize journal handler --- cmd/authd-oidc/daemon/daemon.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/authd-oidc/daemon/daemon.go b/cmd/authd-oidc/daemon/daemon.go index 45466214..c4e46c46 100644 --- a/cmd/authd-oidc/daemon/daemon.go +++ b/cmd/authd-oidc/daemon/daemon.go @@ -50,6 +50,9 @@ func New(name string) *App { Long: fmt.Sprintf("Authentication daemon %s to communicate with our authentication daemon.", name), Args: cobra.NoArgs, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { + // First thing, initialize the log handler + log.InitJournalHandler(false) + // Command parsing has been successful. Returns to not print usage anymore. a.rootCmd.SilenceUsage = true