Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32b1df4f authored by Chris Li's avatar Chris Li
Browse files

Log warning instead of error for dead process client transaction

It is expected to fail when the target process has been killed. Update
to use warning log to not confuse triage (The reason why the process is
killed is more likely the root cause).

Bug: 301870955
Test: logging change only
Change-Id: I88dd42e723050054faa9c4e26789a2488e333c60
parent 70ce23b0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ import android.content.pm.ServiceInfo;
import android.content.res.Configuration;
import android.os.Binder;
import android.os.Build;
import android.os.DeadObjectException;
import android.os.FactoryTest;
import android.os.LocaleList;
import android.os.Message;
@@ -1675,6 +1676,10 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
            @NonNull ClientTransactionItem transactionItem) {
        try {
            mAtm.getLifecycleManager().scheduleTransactionItem(thread, transactionItem);
        } catch (DeadObjectException e) {
            // Expected if the process has been killed.
            Slog.w(TAG_CONFIGURATION, "Failed for dead process. ClientTransactionItem="
                    + transactionItem + " owner=" + mOwner);
        } catch (Exception e) {
            Slog.e(TAG_CONFIGURATION, "Failed to schedule ClientTransactionItem="
                    + transactionItem + " owner=" + mOwner, e);