From de6f9ac6580161096e8f79b9735054d73d388d09 Mon Sep 17 00:00:00 2001 From: Vishal Gupta Date: Fri, 6 Dec 2024 15:59:31 +0530 Subject: [PATCH] refactor: change log message for out of memory error --- .../rudderstack/android/sdk/core/RudderCloudModeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/rudderstack/android/sdk/core/RudderCloudModeManager.java b/core/src/main/java/com/rudderstack/android/sdk/core/RudderCloudModeManager.java index 46a9221f..9341b1a7 100644 --- a/core/src/main/java/com/rudderstack/android/sdk/core/RudderCloudModeManager.java +++ b/core/src/main/java/com/rudderstack/android/sdk/core/RudderCloudModeManager.java @@ -110,7 +110,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); }