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

Commit 6fcf9ab4 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Replace runtime exception with Log.wtf in ProtoLogImpl.

If it fails to talk with the service, it logs an error instead of crash.

Flag: EXEMPT minor change
Bug: 423027875
Change-Id: Ida6821248192859ba1cd886f39493301db591041
parent 32a0400a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ public abstract class PerfettoProtoLogImpl extends IProtoLogClient.Stub implemen

                mConfigurationService.registerClient(this, args);
            } catch (RemoteException e) {
                throw new RuntimeException("Failed to register ProtoLog client", e);
                Log.wtf(LOG_TAG, "Failed to register ProtoLog client", e);
            }
        });
    }
@@ -279,7 +279,7 @@ public abstract class PerfettoProtoLogImpl extends IProtoLogClient.Stub implemen
                }
                mConfigurationService.registerGroups(this, args);
            } catch (RemoteException e) {
                throw new RuntimeException("Failed to register ProtoLog groups", e);
                Log.wtf(LOG_TAG, "Failed to register ProtoLog groups", e);
            }
        });
    }
@@ -308,7 +308,7 @@ public abstract class PerfettoProtoLogImpl extends IProtoLogClient.Stub implemen
            try {
                mConfigurationService.unregisterClient(this);
            } catch (RemoteException e) {
                throw new RuntimeException("Failed to unregister ProtoLog client", e);
                Log.wtf(LOG_TAG, "Failed to unregister ProtoLog client", e);
            }
        });
    }