Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Apr 21, 2020
1 parent 34e4756 commit 5153ff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prompt/ykman.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package prompt

import (
"fmt"
"log"
"os"
"os/exec"
"strings"
Expand All @@ -15,6 +16,7 @@ func YkmanProvider(mfaSerial string) (string, error) {
yubikeyOathCredName = mfaSerial
}

log.Printf("Fetching MFA code using `ykman oath code --single %s`", yubikeyOathCredName)
cmd := exec.Command("ykman", "oath", "code", "--single", yubikeyOathCredName)
cmd.Stderr = os.Stderr

Expand Down

0 comments on commit 5153ff5

Please sign in to comment.