Skip to content

Commit

Permalink
Change log level to Info if leanplum-monitoring not included (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayaan Saha authored Jul 12, 2018
1 parent e4df189 commit e5b2570
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ public void setContext(Context context) {
try {
exceptionReporter.setContext(context);
} catch (Throwable t) {
Log.e("LeanplumCrashHandler", t);
Log.e("LeanplumExceptionHandler", t);
}
}
} catch (ClassNotFoundException t) {
Log.i("LeanplumExceptionHandler could not initialize Exception Reporting." +
"This is expected if you have not included the leanplum-monitoring module");
} catch (Throwable t) {
Log.e("LeanplumCrashHandler", t);
Log.e("LeanplumExceptionHandler", t);
}
}

Expand All @@ -38,7 +41,7 @@ public void reportException(Throwable exception) {
try {
exceptionReporter.reportException(exception);
} catch (Throwable t) {
Log.e("LeanplumCrashHandler", t);
Log.e("LeanplumExceptionHandler", t);
}
}
}
Expand Down

0 comments on commit e5b2570

Please sign in to comment.