Closed klingtnet closed 7 years ago
You can suppress logging:
r := registry.New(url, username, password)
r.Logf = func(format string, args ...interface{}) {
// Make this a noop
}
registry.New is calling Ping() from newFromTransport method and Ping() outputs logging with
r.Logf("registry.ping url=%s", url).
Is there any way we can set the Logf method before the New call?
Why does the library log certain operations? Usually a library does not log anything to stdout/err, instead the output should be returned if necessary.