Log refactoring

- removed obsolete log library
This commit is contained in:
Maciej Olesinski 2019-01-22 00:44:09 +01:00
parent a9dcd61a07
commit 9d4c56545e
1 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,6 @@ import (
"context" "context"
"flag" "flag"
"fmt" "fmt"
"github.com/mrtazz/checkmake/logger"
"os" "os"
"runtime" "runtime"
@ -44,7 +43,7 @@ func main() {
if err != nil { if err != nil {
fatal(err, "failed to get watch namespace") fatal(err, "failed to get watch namespace")
} }
logger.Info(fmt.Sprintf("watch namespace: %v", namespace)) log.Log.Info(fmt.Sprintf("watch namespace: %v", namespace))
// get a config to talk to the apiserver // get a config to talk to the apiserver
cfg, err := config.GetConfig() cfg, err := config.GetConfig()
@ -73,7 +72,7 @@ func main() {
fatal(err, "failed to create manager") fatal(err, "failed to create manager")
} }
logger.Info("Registering Components.") log.Log.Info("Registering Components.")
// setup Scheme for all resources // setup Scheme for all resources
if err := apis.AddToScheme(mgr.GetScheme()); err != nil { if err := apis.AddToScheme(mgr.GetScheme()); err != nil {
@ -85,7 +84,7 @@ func main() {
fatal(err, "failed to setup controllers") fatal(err, "failed to setup controllers")
} }
logger.Info("Starting the Cmd.") log.Log.Info("Starting the Cmd.")
// start the Cmd // start the Cmd
if err := mgr.Start(signals.SetupSignalHandler()); err != nil { if err := mgr.Start(signals.SetupSignalHandler()); err != nil {