[core] Correct process name for android in module log (#651)

* It can only be NULL for system_server.
This commit is contained in:
Wang Han 2021-05-22 19:13:46 +08:00 committed by GitHub
parent fb05d85a9b
commit 37dd63be81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class ModuleLogger {
sb.append(' '); sb.append(' ');
sb.append(isThrowable ? "E" : "I"); sb.append(isThrowable ? "E" : "I");
sb.append('/'); sb.append('/');
sb.append(processName == null ? "?" : processName); sb.append(processName == null ? "android" : processName);
sb.append('('); sb.append('(');
sb.append(Process.myPid()); sb.append(Process.myPid());
sb.append('-'); sb.append('-');