Skip to content

Commit aa61182

Browse files
committed
use ROOT
1 parent 9c26f23 commit aa61182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/slm/src/main/java/org/elasticsearch/xpack/slm/SnapshotLifecycleTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public void onResponse(List<SnapshotInfo> snapshotInfo) {
262262

263263
@Override
264264
public void onFailure(Exception e) {
265-
logger.warn(() -> String.format("failed to retrieve stale registered snapshots for job [%s]", jobId), e);
265+
logger.warn(() -> format("failed to retrieve stale registered snapshots for job [%s]", jobId), e);
266266
// still record the successful snapshot
267267
submitUnbatchedTask(
268268
clusterService,
@@ -321,7 +321,7 @@ public void onResponse(List<SnapshotInfo> snapshotInfo) {
321321

322322
@Override
323323
public void onFailure(Exception e) {
324-
logger.warn(() -> String.format("failed to retrieve stale registered snapshots for job [%s]", jobId), e);
324+
logger.warn(() -> format("failed to retrieve stale registered snapshots for job [%s]", jobId), e);
325325
// still record the failed snapshot
326326
submitUnbatchedTask(
327327
clusterService,

0 commit comments

Comments
 (0)