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:
pancho horrillo
2020-12-16 17:29:26 +01:00
parent d62a9dba68
commit 41be4f9344
11 changed files with 60 additions and 53 deletions
+2 -5
View File
@@ -17,12 +17,10 @@
package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/BBVA/kapow/internal/cmd"
"github.com/BBVA/kapow/internal/logger"
)
func main() {
@@ -35,7 +33,6 @@ func main() {
err := kapowCmd.Execute()
if err != nil {
fmt.Println(err)
os.Exit(1)
logger.L.Fatalln(err)
}
}