Skip to content

Commit

Permalink
Make SOLoader SysUtils less noisy
Browse files Browse the repository at this point in the history
Summary: If we do not have permissions then this can be really noisy in the logs. It is bugging me

Differential Revision: D18897689

fbshipit-source-id: 516fd21a42955bbe50bed73aad2a9a8ded6e6daa
  • Loading branch information
Mikey Rutherford authored and facebook-github-bot committed Jan 9, 2020
1 parent 3f60655 commit 3224384
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion java/com/facebook/soloader/SysUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ public static String[] getSupportedAbis() {
priorAbis.add(MinElf.ISA.X86.toString());
}
} catch (ErrnoException e) {
Log.e(TAG, "Could not read /proc/self/exe. Falling back to default ABI list.", e);
Log.e(
TAG,
String.format(
"Could not read /proc/self/exe. Falling back to default ABI list. errno: %d Err msg: %s",
e.errno, e.getMessage()));
return Build.SUPPORTED_ABIS;
}
final ArrayList<String> finalPriorAbis = priorAbis;
Expand Down

0 comments on commit 3224384

Please sign in to comment.