Use Log.e for procfs file read errors

Log.wtf implies a catastrophic, unrecoverable failure. Failures to read
procfs files (e.g., due to permissions or non-existence) are better
represented by Log.e as they are often recoverable or expected under
certain conditions, and not always indicative of a fatal application state.

Flag: EXEMPT mainline
Bug: 429012888
Test: TH
Change-Id: I717d46d4c3802ac478e80d2a9dd28c79a9ebc5f7
This commit is contained in:
Jimi Chen 2025-07-18 06:11:15 +00:00
commit 83298a7b5d

View file

@ -78,7 +78,7 @@ public final class ProcfsParsingUtils {
lines.add(line);
}
} catch (IOException e) {
Log.wtf(TAG, "failed to read " + filePath, e);
Log.e(TAG, "failed to read " + filePath, e);
}
return lines;