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
@@ -18,11 +18,11 @@ package cmd
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/BBVA/kapow/internal/client"
|
||||
"github.com/BBVA/kapow/internal/logger"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@@ -47,7 +47,7 @@ var SetCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
if err := client.SetData(dataURL, handler, path, r); err != nil {
|
||||
log.Fatal(err)
|
||||
logger.L.Fatal(err)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user