Skip to content

Commit 98f923b

Browse files
committed
[MOB-10592] Refactor logging calls in IterableMobileFrameworkDetector- Updated logging calls to use separate arguments for TAG and message.- Improved code readability and consistency in logging format.
1 parent adba5f3 commit 98f923b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableMobileFrameworkDetector.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object IterableMobileFrameworkDetector {
5555

5656
return when {
5757
hasFlutter && hasReactNative -> {
58-
IterableLogger.d("$TAG: Both Flutter and React Native frameworks detected. This is unexpected.")
58+
IterableLogger.d(TAG, "Both Flutter and React Native frameworks detected. This is unexpected.")
5959
// Check multiple indicators for Flutter
6060
when {
6161
context.packageName.endsWith(".flutter") -> IterableAPIMobileFrameworkType.FLUTTER
@@ -124,7 +124,7 @@ object IterableMobileFrameworkDetector {
124124
val metadata = packageInfo.applicationInfo.metaData
125125
metadataKeys.any { key -> metadata?.containsKey(key) == true }
126126
} catch (e: Exception) {
127-
IterableLogger.e("$TAG: Error checking manifest metadata: ${e.message}")
127+
IterableLogger.e(TAG, "Error checking manifest metadata: ${e.message}")
128128
false
129129
}
130130
}

0 commit comments

Comments
 (0)