Skip to content

Commit

Permalink
Enable Keyring debugging in verbose mode
Browse files Browse the repository at this point in the history
This will log details about the available backends, the chosen backend, and other Keyring things.
  • Loading branch information
simpson-ross committed Jun 28, 2023
1 parent 31e7a91 commit bb1802d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bb1802d

Please sign in to comment.