From bb1802dad5a91d9d3eae269d0dbec06ee9fd9dac Mon Sep 17 00:00:00 2001 From: Ross Simpson Date: Wed, 28 Jun 2023 12:21:33 +1200 Subject: [PATCH] Enable Keyring debugging in verbose mode This will log details about the available backends, the chosen backend, and other Keyring things. --- cmd/add.go | 1 + cmd/exec.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/add.go b/cmd/add.go index ca6e783..13047b8 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -62,6 +62,7 @@ var addCmd = &cobra.Command{ PreRun: func(cmd *cobra.Command, args []string) { if verbose { log.SetLevel(log.DebugLevel) + keyring.Debug = true } }, Run: func(cmd *cobra.Command, args []string) { diff --git a/cmd/exec.go b/cmd/exec.go index 0f8cd88..88ce5ef 100644 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -54,6 +54,7 @@ var execCmd = &cobra.Command{ PreRun: func(cmd *cobra.Command, args []string) { if verbose { log.SetLevel(log.DebugLevel) + keyring.Debug = true } }, Run: func(cmd *cobra.Command, args []string) {