Add Debug

This commit is contained in:
Ben Toogood 2020-04-03 15:03:18 +01:00
parent 4a850ff8a0
commit a82ce4d1ae

View File

@ -108,6 +108,8 @@ func namespaceFromRequest(req *http.Request) (string, error) {
host, _, _ = net.SplitHostPort(req.Host) host, _, _ = net.SplitHostPort(req.Host)
} }
logger.Infof("Host is %v", host)
// check for an ip address // check for an ip address
if net.ParseIP(host) != nil { if net.ParseIP(host) != nil {
return auth.DefaultNamespace, nil return auth.DefaultNamespace, nil