envoyproxy/envoy
Auf GitHub ansehenFine grained logging via FANCY_LOG always evaluates macro arguments
Open
#12.885 geöffnet am 29. Aug. 2020
area/envoy_loghelp wanted
Repository-Metriken
- Stars
- (27.997 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 8T) (378 gemergte PRs in 30 T)
Beschreibung
The ENVOY_LOG macro without fine grained logging doesn't evaluate variadic
arguments when the log level squelches the message. When going through
FANCY_LOG however, that no longer holds. Variadic arguments are always evaluated
regardless of the log level involved. This could be problematic from a perf point of view.
Context: https://github.com/envoyproxy/envoy/pull/12830#issuecomment-681918730