http frontend log spam fix

This commit is contained in:
Michael Quigley 2022-09-09 10:01:24 -04:00
parent a312021a4e
commit 370fd78402
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -215,19 +215,19 @@ func authHandler(handler http.Handler, realm string, cfg *Config, ctx ziti.Conte
return
}
} else {
logrus.Infof("%v -> no auth scheme for '%v'", r.RemoteAddr, svcName)
logrus.Warnf("%v -> no auth scheme for '%v'", r.RemoteAddr, svcName)
notfound_ui.WriteNotFound(w)
}
} else {
logrus.Infof("%v -> no proxy config for '%v'", r.RemoteAddr, svcName)
logrus.Warnf("%v -> no proxy config for '%v'", r.RemoteAddr, svcName)
notfound_ui.WriteNotFound(w)
}
} else {
logrus.Infof("%v -> service '%v' not found", r.RemoteAddr, svcName)
logrus.Warnf("%v -> service '%v' not found", r.RemoteAddr, svcName)
notfound_ui.WriteNotFound(w)
}
} else {
logrus.Warnf("host '%v' did not match host match, returning health check", r.Host)
logrus.Debugf("host '%v' did not match host match, returning health check", r.Host)
health_ui.WriteHealthOk(w)
}
}