Skip to content

Commit

Permalink
remove redundant logging in engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Jan 24, 2019
1 parent 2ebae78 commit 82a2ce3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions template/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package template
import (
"context"
"errors"
"log"
"math/rand"
"os"
"strings"
Expand All @@ -12,7 +11,7 @@ import (

"github.com/CyCoreSystems/netdiscover/discover"
"github.com/ericchiang/k8s"
"github.com/ericchiang/k8s/apis/core/v1"
v1 "github.com/ericchiang/k8s/apis/core/v1"
)

// KubeAPITimeout is the amount of time to wait for the kubernetes API to respond before failing
Expand Down Expand Up @@ -75,8 +74,6 @@ func (e *Engine) connectKube() (err error) {
}

func (e *Engine) failure(err error) {
log.Println("engine failure encountered:", err)

e.Close()

if e.reload != nil {
Expand Down

0 comments on commit 82a2ce3

Please sign in to comment.