fix logs
This commit is contained in:
@@ -2,7 +2,7 @@ package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"exporter/config"
|
||||
|
||||
@@ -14,8 +14,8 @@ func LoginCmd() *cobra.Command {
|
||||
Use: "login",
|
||||
Short: "login account",
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
fmt.Println("init client")
|
||||
defer fmt.Println("init client done")
|
||||
log.Println("init client")
|
||||
defer log.Println("init client done")
|
||||
return InitClient(config.C)
|
||||
},
|
||||
RunE: wrapE(func(ctx context.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user