refactor: use a common logger for consistency
All kapow messages will end up in stderr (incl. debug mode). stdout is reserved for the access logs. Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
+2
-2
@@ -17,12 +17,12 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/BBVA/kapow/internal/client"
|
||||
"github.com/BBVA/kapow/internal/logger"
|
||||
)
|
||||
|
||||
// GetCmd is the command line interface for get kapow data operation
|
||||
@@ -38,7 +38,7 @@ var GetCmd = &cobra.Command{
|
||||
|
||||
err := client.GetData(dataURL, handler, args[0], os.Stdout)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
logger.L.Fatal(err)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user