Remove some logs caused by external apps (#16027)

This commit is contained in:
Anis Elleuch
2022-11-08 22:29:05 +01:00
committed by GitHub
parent 3b1a9b9fdf
commit 7260241511
4 changed files with 14 additions and 12 deletions

View File

@@ -367,10 +367,6 @@ func getResource(path string, host string, domains []string) (string, error) {
// If virtual-host-style is enabled construct the "resource" properly.
xhost, err := xnet.ParseHost(host)
if err != nil {
reqInfo := (&logger.ReqInfo{}).AppendTags("host", host)
reqInfo.AppendTags("path", path)
ctx := logger.SetReqInfo(context.Background(), reqInfo)
logger.LogIf(ctx, err)
return "", err
}