Skip to content

Commit

Permalink
Initialize journal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
adombeck committed Jan 16, 2025
1 parent 213d057 commit 0fb9c1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/authd-oidc/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0fb9c1b

Please sign in to comment.