Skip to content

Commit

Permalink
Log instead of throwing parsing manifests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Jun 8, 2023
1 parent 26ecf64 commit 5854057
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ public List<GlideModule> parse() {
}
}
}
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "Finished loading Glide modules");
}
} catch (PackageManager.NameNotFoundException e) {
throw new RuntimeException("Unable to find metadata to parse GlideModules", e);
}
if (Log.isLoggable(TAG, Log.DEBUG)) {
Log.d(TAG, "Finished loading Glide modules");
if (Log.isLoggable(TAG, Log.ERROR)) {
Log.e(TAG, "Failed to parse glide modules", e);
}
}

return modules;
Expand Down

0 comments on commit 5854057

Please sign in to comment.