Skip to content

Commit e5b2570

Browse files
author
Sayaan Saha
authored
Change log level to Info if leanplum-monitoring not included (#209)
1 parent e4df189 commit e5b2570

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

AndroidSDKCore/src/main/java/com/leanplum/monitoring/ExceptionHandler.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ public void setContext(Context context) {
2525
try {
2626
exceptionReporter.setContext(context);
2727
} catch (Throwable t) {
28-
Log.e("LeanplumCrashHandler", t);
28+
Log.e("LeanplumExceptionHandler", t);
2929
}
3030
}
31+
} catch (ClassNotFoundException t) {
32+
Log.i("LeanplumExceptionHandler could not initialize Exception Reporting." +
33+
"This is expected if you have not included the leanplum-monitoring module");
3134
} catch (Throwable t) {
32-
Log.e("LeanplumCrashHandler", t);
35+
Log.e("LeanplumExceptionHandler", t);
3336
}
3437
}
3538

@@ -38,7 +41,7 @@ public void reportException(Throwable exception) {
3841
try {
3942
exceptionReporter.reportException(exception);
4043
} catch (Throwable t) {
41-
Log.e("LeanplumCrashHandler", t);
44+
Log.e("LeanplumExceptionHandler", t);
4245
}
4346
}
4447
}

0 commit comments

Comments
 (0)