diff --git a/pkg/middlewares/canary/request.go b/pkg/middlewares/canary/request.go index 7acc878b16..1e69efb7fd 100644 --- a/pkg/middlewares/canary/request.go +++ b/pkg/middlewares/canary/request.go @@ -9,7 +9,6 @@ import ( "net" "net/http" "net/url" - "os" "runtime" "sync/atomic" "time" @@ -22,11 +21,7 @@ import ( ) func init() { - hostname, _ := os.Hostname() - if hostname == "" { - hostname = "unknown" - } - userAgent = fmt.Sprintf("Go/%v Hostname/%s Traefik/%s (Canary Middleware)", runtime.Version(), hostname, version.Version) + userAgent = fmt.Sprintf("Go/%v Traefik/%s (Canary Middleware)", runtime.Version(), version.Version) } var userAgent string diff --git a/pkg/provider/kubernetes/crd/kubernetes.go b/pkg/provider/kubernetes/crd/kubernetes.go index 4422d219d2..9ed2f9b9cb 100644 --- a/pkg/provider/kubernetes/crd/kubernetes.go +++ b/pkg/provider/kubernetes/crd/kubernetes.go @@ -137,6 +137,7 @@ func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe. case p.lastConfiguration.Get() == confHash: logger.Debugf("Skipping Kubernetes event kind %T", event) default: + logger.Infof("Process Kubernetes event %T, hash %d, conf %+v", event, confHash, conf) p.lastConfiguration.Set(confHash) configurationChan <- dynamic.Message{ ProviderName: providerName, diff --git a/pkg/server/service/proxy.go b/pkg/server/service/proxy.go index d6fdfcb8ee..6d77aaaae9 100644 --- a/pkg/server/service/proxy.go +++ b/pkg/server/service/proxy.go @@ -89,11 +89,11 @@ func buildProxy(passHostHeader *bool, responseForwarding *dynamic.ResponseForwar } } - log.Debugf("'%d %s' caused by: %v", statusCode, statusText(statusCode), err) + log.Infof("'%d %s' caused by: %v", statusCode, statusText(statusCode), err) w.WriteHeader(statusCode) _, werr := w.Write([]byte(statusText(statusCode))) if werr != nil { - log.Debugf("Error while writing status code", werr) + log.Infof("Error while writing status code", werr) } }, }