TUN-3594: Log ingress response at debug level
This commit is contained in:
		
							parent
							
								
									d90a111c1d
								
							
						
					
					
						commit
						146c2d944a
					
				|  | @ -191,7 +191,7 @@ func (c *client) logRequest(r *http.Request, cfRay string, lbProbe bool, ruleNum | ||||||
| func (c *client) logOriginResponse(r *http.Response, cfRay string, lbProbe bool, ruleNum int) { | func (c *client) logOriginResponse(r *http.Response, cfRay string, lbProbe bool, ruleNum int) { | ||||||
| 	responseByCode.WithLabelValues(strconv.Itoa(r.StatusCode)).Inc() | 	responseByCode.WithLabelValues(strconv.Itoa(r.StatusCode)).Inc() | ||||||
| 	if cfRay != "" { | 	if cfRay != "" { | ||||||
| 		c.log.Info().Msgf("CF-RAY: %s Status: %s served by ingress %d", cfRay, r.Status, ruleNum) | 		c.log.Debug().Msgf("CF-RAY: %s Status: %s served by ingress %d", cfRay, r.Status, ruleNum) | ||||||
| 	} else if lbProbe { | 	} else if lbProbe { | ||||||
| 		c.log.Debug().Msgf("Response to Load Balancer health check %s", r.Status) | 		c.log.Debug().Msgf("Response to Load Balancer health check %s", r.Status) | ||||||
| 	} else { | 	} else { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue