Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access_log: use AccessLogType::NotSet instead of default value #27058

Merged
merged 2 commits into from
May 1, 2023

Conversation

ohadvano
Copy link
Contributor

@ohadvano ohadvano commented Apr 29, 2023

Commit Message: access_log: use AccessLogType::NotSet instead of default value
Additional Description: Remove default value for the access_log_type parameter in any log function and instead call log() with AccessLogType::NotSet to explicitly indicate that the access log type is irrelevant or not handled
Risk Level: Low
Testing: Unit tests
Docs Changes: None
Release Notes: None
Platform Specific Features: None

Signed-off-by: ohadvano <ohadvano@gmail.com>
Signed-off-by: ohadvano <ohadvano@gmail.com>
@wbpcode
Copy link
Member

wbpcode commented Apr 29, 2023

Hmmm, sorry, but i didn't get why we need this patch? 🤣

@ohadvano
Copy link
Contributor Author

ohadvano commented Apr 29, 2023

@wbpcode it's not mandatory, but I think it would be better to pass the parameter explicitly in the call sites to indicate that access log type is irrelevant or not handled in those cases. Practically this is just a refactor, no behavioral changes here. I've done the same with #27034. The reason for using the default value in first place, was to reduce the number of changes in the actual feature PR, so it can be reviewed more easily (otherwise it would have 2000+ changed lines instead of 800)..

@wbpcode
Copy link
Member

wbpcode commented Apr 29, 2023

got it. defer this pr to @adisuissa and @yanavlasov because #27034 was reviewed by them.

And thanks for this contribution. 😺

@yanavlasov yanavlasov merged commit 4565809 into envoyproxy:main May 1, 2023
@ohadvano ohadvano deleted the remove_default_from_log branch May 1, 2023 18:26
michaelfinch added a commit to michaelfinch/envoy that referenced this pull request May 2, 2023
* main: (175 commits)
  xds: add config for pick_first LB policy extension (envoyproxy#26952)
  ci: run Kotlin tests with signal_trace disabled (envoyproxy#27090)
  ssl: upgrade FIPS boringssl version (envoyproxy#27087)
  Add createPath to Filesystem abstraction. (envoyproxy#27052)
  mobile/ci: Increase test_timeout for ios tests (envoyproxy#27044)
  [mobile]remove Java and GMScore impl from Cronvoy (envoyproxy#27039)
  Fix compliance issues for iOS builds (envoyproxy#27027)
  docs: fix the license URL of the dependency "dd-trace-cpp" (envoyproxy#27054)
  ci/mobile: Hide CI progress in .bazelrc (envoyproxy#27045)
  thrift_proxy: add access log support for local reply (envoyproxy#27057)
  ci: Consolidate artifact targets (envoyproxy#27079)
  lb: moving maglev to extensions (envoyproxy#27037)
  Overload Manager: LoadShedPoint for HCM decode headers (envoyproxy#26769)
  Plumb ServerFactoryContext into header validator factory (envoyproxy#27008)
  access_log: use AccessLogType::NotSet instead of default value (envoyproxy#27058)
  access_log: pass access log type parameter to evaluate function (envoyproxy#27063)
  Remove unused member from GrpcStream (envoyproxy#27055)
  tools: setup build in local_fix_format (envoyproxy#27060)
  generic proxy: virtual host support for the generic proxy routing (envoyproxy#26932)
  deps: Bump pytooling publishing deps (envoyproxy#27059)
  ...
reskin89 pushed a commit to reskin89/envoy that referenced this pull request Jul 11, 2023
…proxy#27058)

* use AccessLogType::NotSet instead of default parameter value

* pass access log type parameter in wasm extension

Signed-off-by: ohadvano <ohadvano@gmail.com>
Signed-off-by: Ryan Eskin <ryan.eskin89@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants