Skip to content

Fix log formatting in SnapshotLifecycleTask#136709

Merged
nielsbauman merged 2 commits intoelastic:mainfrom
nielsbauman:fix-slm-log
Oct 17, 2025
Merged

Fix log formatting in SnapshotLifecycleTask#136709
nielsbauman merged 2 commits intoelastic:mainfrom
nielsbauman:fix-slm-log

Conversation

@nielsbauman
Copy link
Contributor

While converting an error log from logger.error to logger.error(format()) in #131646, we forgot to update the syntax from {} to %s. This resulted in the logs failed to create snapshot for snapshot lifecycle policy [{}]. This commit fixes the syntax and ensures we use the right logger.

While converting an error log from `logger.error` to
`logger.error(format())` in elastic#131646, we forgot to update the syntax from
`{}` to `%s`. This resulted in the logs `failed to create snapshot for
snapshot lifecycle policy [{}]`. This commit fixes the syntax and
ensures we use the right logger.
@nielsbauman nielsbauman requested a review from samxbr October 16, 2025 17:46
@nielsbauman nielsbauman added >bug :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. labels Oct 16, 2025
@elasticsearchmachine elasticsearchmachine added v9.3.0 Team:Data Management (obsolete) DO NOT USE. This team no longer exists. labels Oct 16, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine
Copy link
Collaborator

Hi @nielsbauman, I've created a changelog YAML for you.

Copy link
Contributor

@szybia szybia left a comment

Choose a reason for hiding this comment

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

lgmt, but should we also add/fix this in 9.2.1?

@nielsbauman nielsbauman added auto-backport Automatically create backport pull requests when merged v9.2.1 labels Oct 17, 2025
@nielsbauman nielsbauman merged commit 964ee27 into elastic:main Oct 17, 2025
33 of 34 checks passed
@nielsbauman nielsbauman deleted the fix-slm-log branch October 17, 2025 15:54
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2
nielsbauman added a commit to nielsbauman/elasticsearch that referenced this pull request Oct 17, 2025
While converting an error log from `logger.error` to
`logger.error(format())` in elastic#131646, we forgot to update the syntax from
`{}` to `%s`. This resulted in the logs `failed to create snapshot for
snapshot lifecycle policy [{}]`. This commit fixes the syntax and
ensures we use the right logger.
elasticsearchmachine pushed a commit that referenced this pull request Oct 17, 2025
While converting an error log from `logger.error` to
`logger.error(format())` in #131646, we forgot to update the syntax from
`{}` to `%s`. This resulted in the logs `failed to create snapshot for
snapshot lifecycle policy [{}]`. This commit fixes the syntax and
ensures we use the right logger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v9.2.1 v9.3.0

3 participants