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

logging: use ENVOY_(CONN_)LOG with logger ID instead of ENVOY_LOG_MISC #1153

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

mhofstetter
Copy link
Member

see commits

ENVOY_LOG_MISC should be used where no logger ID is available.

The BPFMetadata listener filter uses the logger ID `filter` and
should make use of this by using `ENVOY_LOG`.

This helps when filtering log messages by logger IDs.

Signed-off-by: Marco Hofstetter <[email protected]>
@mhofstetter mhofstetter changed the title logging: use ENVOY_LOG with filter ID instead of ENVOY_LOG_MISC logging: use ENVOY_LOG with logger ID instead of ENVOY_LOG_MISC Jan 30, 2025
ENVOY_LOG_MISC should be used where no logger ID is available.

The SslSocketWrapper uses a logger ID and
should make use of this by using `ENVOY_CONN_LOG`.

This helps when filtering log messages by logger IDs.

In addition, this commit changes the current logger instance
`config` to `connection` - which is also used by the upstream
Envoy TransportSocket implementations.

Signed-off-by: Marco Hofstetter <[email protected]>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/log-filter-ids branch from 9b9b1c4 to 3a24424 Compare January 30, 2025 16:50
@mhofstetter mhofstetter changed the title logging: use ENVOY_LOG with logger ID instead of ENVOY_LOG_MISC logging: use ENVOY_(CONN_)LOG with logger ID instead of ENVOY_LOG_MISC Jan 30, 2025
@mhofstetter mhofstetter marked this pull request as ready for review January 30, 2025 16:58
@mhofstetter mhofstetter requested a review from a team as a code owner January 30, 2025 16:58
@jrajahalme jrajahalme added this pull request to the merge queue Jan 30, 2025
Merged via the queue into cilium:main with commit f0d28a4 Jan 30, 2025
5 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/log-filter-ids branch January 30, 2025 17:01
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.

2 participants