fix logs
This commit is contained in:
@@ -2,7 +2,7 @@ package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"exporter/config"
|
||||
|
||||
@@ -22,8 +22,8 @@ func ExportCmd() *cobra.Command {
|
||||
Use: "export",
|
||||
Short: "export channels",
|
||||
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(exportCmd),
|
||||
|
||||
Reference in New Issue
Block a user