Skip to content

Commit

Permalink
Add the command in the debug log before the action is performed
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumerose authored and praveenkumar committed Jan 6, 2021
1 parent acde26d commit 4eb5c06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/crc/cmd/root.go
Expand Up @@ -174,6 +174,7 @@ func addForceFlag(cmd *cobra.Command) {

func executeWithLogging(fullCmd string, input func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string) error {
return func(cmd *cobra.Command, args []string) error {
logging.Debugf("Running '%s'", fullCmd)
if err := input(cmd, args); err != nil {
if serr := segmentClient.Upload(fullCmd, err); serr != nil {
fmt.Println(serr.Error())
Expand Down

0 comments on commit 4eb5c06

Please sign in to comment.