Skip to content

fine_grain_logger: make sure fine-grain-logger map registration in macros#34815

Merged
ggreenway merged 5 commits intoenvoyproxy:mainfrom
botengyao:fix_fine_grain_logger
Jun 24, 2024
Merged

fine_grain_logger: make sure fine-grain-logger map registration in macros#34815
ggreenway merged 5 commits intoenvoyproxy:mainfrom
botengyao:fix_fine_grain_logger

Conversation

@botengyao
Copy link
Copy Markdown
Member

@botengyao botengyao commented Jun 19, 2024

The ENVOY_LOG_COMP_LEVEL will lead to non-active fine-grain loggers are not managed by the fine-grain logger map when log level is lower than default, since ENVOY_LOG_TO_LOGGER is the only way to call FINE_GRAIN_LOG to initialize a fg-logger.

This PR creates a new FINE_GRAIN_LOGGER() and that can be used for getting fine-grain logger.
Also creates a new ENVOY_LOG_COMP_LEVEL_FINE_GRAIN_IF() to consider fine-grain logger when doing comparison.

Note, not all marcos are migrated.

Commit Message:
Additional Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Boteng Yao <boteng@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #34815 was opened by botengyao.

see: more, trace.

Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Copy Markdown
Member Author

/retest

@botengyao botengyao marked this pull request as ready for review June 20, 2024 14:36
@botengyao
Copy link
Copy Markdown
Member Author

/assign @KBaichoo

@botengyao
Copy link
Copy Markdown
Member Author

/wait
for an improvement.

Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Copy Markdown
Member Author

/retest

@botengyao
Copy link
Copy Markdown
Member Author

Hi @KBaichoo, this is ready for a review. Thanks!

@botengyao botengyao changed the title fine-grain logger: make sure fine-grain-logger map registration fine_grain_logger: make sure fine-grain-logger map registration Jun 20, 2024
@botengyao botengyao changed the title fine_grain_logger: make sure fine-grain-logger map registration fine_grain_logger: make sure fine-grain-logger map registration in macros Jun 20, 2024
Signed-off-by: Boteng Yao <boteng@google.com>
KBaichoo
KBaichoo previously approved these changes Jun 24, 2024
Copy link
Copy Markdown
Contributor

@KBaichoo KBaichoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm apart from minor change

Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Copy Markdown
Member Author

/assign @ggreenway

@ggreenway ggreenway merged commit e187bc7 into envoyproxy:main Jun 24, 2024
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…cros (envoyproxy#34815)

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…cros (envoyproxy#34815)

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…cros (envoyproxy#34815)

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…cros (envoyproxy#34815)

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 19, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Nov 21, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 3, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 11, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 17, 2024
sayboras added a commit to cilium/proxy that referenced this pull request Dec 18, 2024
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.

3 participants