TUN-6806: Add ingress rule number to log when filtering due to middlware handler
This commit is contained in:
parent
f81d35447e
commit
6be36fa2c5
|
@ -103,7 +103,8 @@ func (p *Proxy) ProxyHTTP(
|
||||||
ruleSpan.End()
|
ruleSpan.End()
|
||||||
if err, applied := p.applyIngressMiddleware(rule, req, w); err != nil {
|
if err, applied := p.applyIngressMiddleware(rule, req, w); err != nil {
|
||||||
if applied {
|
if applied {
|
||||||
p.log.Error().Msg(err.Error())
|
rule, srv := ruleField(p.ingressRules, ruleNum)
|
||||||
|
p.logRequestError(err, cfRay, "", rule, srv)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue