Skip to content

Commit

Permalink
Logger added (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshcommits authored Nov 29, 2022
1 parent a119538 commit 9e2a62e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/dnsclient/dnsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import (
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"

runtimelog "sigs.k8s.io/controller-runtime/pkg/log"
"github.com/gardener/gardener/pkg/logger"

raw "github.com/ujwaliyer/gardener-extension-provider-dns-infoblox/pkg/infoblox"
)

Expand Down Expand Up @@ -161,7 +164,10 @@ func (c *dnsClient) GetManagedZones(ctx context.Context) (map[string]string, err
}

// print urlstring
fmt.Println(urlStr + "ident_test")
runtimelog.SetLogger(logger.ZapLogger(false))
var err_log error
runtimelog.Log.Error(err_log, "ident_test" + urlStr)


req.Header.Set("Content-Type", "application/json")
req.SetBasicAuth(conn.HostConfig.Username, conn.HostConfig.Password)
Expand Down

0 comments on commit 9e2a62e

Please sign in to comment.