Skip to content

[optimize] Add isWarnEnabled guard for expensive log construction#27522

Open
dingqianwen wants to merge 1 commit intoapache:masterfrom
dingqianwen:patch-1
Open

[optimize] Add isWarnEnabled guard for expensive log construction#27522
dingqianwen wants to merge 1 commit intoapache:masterfrom
dingqianwen:patch-1

Conversation

@dingqianwen
Copy link

Avoids expensive string formatting and array-to-string conversion in LOG.warn when the logging level is not enabled. This improves performance by skipping the argument construction for the file splitting log message.

Avoids expensive string formatting and array-to-string conversion in `LOG.warn` when the logging level is not enabled.
This improves performance by skipping the argument construction for the file splitting log message.
@flinkbot
Copy link
Collaborator

flinkbot commented Feb 4, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@github-actions github-actions bot added the community-reviewed PR has been reviewed by the community. label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-reviewed PR has been reviewed by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants