Skip to content

Commit

Permalink
Merge pull request #4208 from logresearch/release/4.0
Browse files Browse the repository at this point in the history
Fix logging messages
  • Loading branch information
VishalNehra authored Jul 8, 2024
2 parents bdc86af + 40094d7 commit cb2b2e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public List<AppDataParcelable> loadInBackground() {
try {
androidInfo = packageManager.getPackageInfo("android", PackageManager.GET_SIGNATURES);
} catch (PackageManager.NameNotFoundException e) {
LOG.warn("faield to find android package name while loading apps list", e);
LOG.warn("failed to find android package name while loading apps list", e);
}

for (ApplicationInfo object : apps) {
Expand All @@ -99,7 +99,7 @@ public List<AppDataParcelable> loadInBackground() {
try {
info = packageManager.getPackageInfo(object.packageName, PackageManager.GET_SIGNATURES);
} catch (PackageManager.NameNotFoundException e) {
LOG.warn("faield to find package name {} while loading apps list", object.packageName, e);
LOG.warn("failed to find package name {} while loading apps list", object.packageName, e);
info = null;
}
boolean isSystemApp = isAppInSystemPartition(object) || isSignedBySystem(info, androidInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,9 @@ public static File fromContentUri(@NonNull Uri uri) {
}
File pathFile = new File(uri.getPath().substring(FILE_PROVIDER_PREFIX.length() + 1));
if (!pathFile.exists()) {
LOG.warn("failed to navigate to path {}", pathFile.getPath());
LOG.warn("Failed to navigate to the initial path: {}", pathFile.getPath());
pathFile = new File(uri.getPath());
LOG.warn("trying to navigate to path {}", pathFile.getPath());
LOG.warn("Attempting to navigate to the fallback path: {}", pathFile.getPath());
}
return pathFile;
}
Expand Down

0 comments on commit cb2b2e3

Please sign in to comment.