Fix cases of inlined & missing log tags.

This commit is contained in:
Alan Evans
2020-05-11 11:03:42 -03:00
committed by Alex Hart
parent 3db5da1c8d
commit 06ab3cf013
18 changed files with 52 additions and 40 deletions

View File

@@ -12,6 +12,9 @@ import java.util.List;
* Errors in one handler do not prevent subsequent handlers from being called.
*/
public class UncaughtExceptionHandlerManager implements Thread.UncaughtExceptionHandler {
private static final String TAG = Log.tag(UncaughtExceptionHandlerManager.class);
private final Thread.UncaughtExceptionHandler originalHandler;
private final List<Thread.UncaughtExceptionHandler> handlers = new ArrayList<Thread.UncaughtExceptionHandler>();
@@ -35,7 +38,7 @@ public class UncaughtExceptionHandlerManager implements Thread.UncaughtException
try {
handlers.get(i).uncaughtException(thread, throwable);
} catch(Throwable t) {
Log.e("UncaughtExceptionHandlerManager", "Error in uncaught exception handling", t);
Log.e(TAG, "Error in uncaught exception handling", t);
}
}
}