Skip to content

Commit

Permalink
refactor: change log message for out of memory error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal Gupta committed Dec 6, 2024
1 parent ca9682e commit b8f9b1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void run() {
RudderLogger.logError(String.format("CloudModeManager: cloudModeProcessor: Exception while trying to send events to Data plane URL %s due to %s", config.getDataPlaneUrl(), ex.getLocalizedMessage()));
Thread.currentThread().interrupt();
} catch (OutOfMemoryError e) {
RudderLogger.logError("CloudModeManager: cloudModeProcessor: Out of memory error occurred while trying to send events to Data plane URL " + config.getDataPlaneUrl());
RudderLogger.logError(String.format("CloudModeManager: cloudModeProcessor: Out of memory error: %s occurred while trying to send events to Data plane URL: %s", e.getLocalizedMessage(), config.getDataPlaneUrl()));
// sleeping the thread for 1s to avoid continuous loop after OOM.
Utils.sleep(1000);
}
Expand Down

0 comments on commit b8f9b1b

Please sign in to comment.