File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
x-pack/plugin/slm/src/main/java/org/elasticsearch/xpack/slm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ public void onResponse(List<SnapshotInfo> snapshotInfo) {
262262
263263 @ Override
264264 public void onFailure (Exception e ) {
265- logger .warn ("failed to retrieve stale registered snapshots for job [{} ]" , jobId , e );
265+ logger .warn (() -> String . 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 ("failed to retrieve stale registered snapshots for job [{} ]" , jobId , e );
324+ logger .warn (() -> String . format ( "failed to retrieve stale registered snapshots for job [%s ]" , jobId ) , e );
325325 // still record the failed snapshot
326326 submitUnbatchedTask (
327327 clusterService ,
You can’t perform that action at this time.
0 commit comments