From 2e7ac56f766f0a4bcfba30821bace22a380512c8 Mon Sep 17 00:00:00 2001 From: Mikel Alejo Date: Wed, 4 Dec 2024 20:51:47 +0100 Subject: [PATCH] fix: log formatting errors (#3169) The logs were improperly formatted and that was causing an exception, instead of giving us the expected log message. RHCLOUD-35454 --- .../routers/internal/kessel/KesselAssetsMigrationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/redhat/cloud/notifications/routers/internal/kessel/KesselAssetsMigrationService.java b/backend/src/main/java/com/redhat/cloud/notifications/routers/internal/kessel/KesselAssetsMigrationService.java index 0830b5aba3..114074de11 100644 --- a/backend/src/main/java/com/redhat/cloud/notifications/routers/internal/kessel/KesselAssetsMigrationService.java +++ b/backend/src/main/java/com/redhat/cloud/notifications/routers/internal/kessel/KesselAssetsMigrationService.java @@ -86,7 +86,7 @@ public void migrateAssets() { @Override public void onNext(final CreateTuplesResponse createTuplesResponse) { Log.debug("Calling onNext"); - Log.infof("[offset: %s][first_integration: %s][last_integration: %s] Sent batch of % integrations to Kessel", finalOffset, fetchedEndpoints.getFirst().getId(), fetchedEndpoints.getLast().getId(), fetchedEndpoints.size()); + Log.infof("[offset: %s][first_integration: %s][last_integration: %s] Sent batch of %s integrations to Kessel", finalOffset, fetchedEndpoints.getFirst().getId(), fetchedEndpoints.getLast().getId(), fetchedEndpoints.size()); } @Override @@ -98,7 +98,7 @@ public void onError(final Throwable throwable) { @Override public void onCompleted() { Log.debug("Calling onCompleted"); - Log.infof("[offset: %s][first_integration: %s][last_integration: %s] Sent batch of % integrations to Kessel", finalOffset, fetchedEndpoints.getFirst().getId(), fetchedEndpoints.getLast().getId(), fetchedEndpoints.size()); + Log.infof("[offset: %s][first_integration: %s][last_integration: %s] Sent batch of %s integrations to Kessel", finalOffset, fetchedEndpoints.getFirst().getId(), fetchedEndpoints.getLast().getId(), fetchedEndpoints.size()); } });