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

Commit 992054a2 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Fix: Corrected condition for ProtoLog message decoding error.

The error message for failing to decode a ProtoLog message due to an unavailable message hash was being triggered when the hash *was* available. The condition has been inverted to correctly log the error when the message hash is *not* found in the viewer config file.

Bug: 442776354
Flag: EXEMPT minor bug fix affecting error messages only
Change-Id: I90e8ac47ee36748de13395e8212420f8e4a56ea5
parent dc5fa92e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -180,7 +180,7 @@ public class ProcessedPerfettoProtoLogImpl extends PerfettoProtoLogImpl {
        }
        }


        try {
        try {
            if (mViewerConfigReader.messageHashIsAvailableInFile(message.getMessageHash())) {
            if (!mViewerConfigReader.messageHashIsAvailableInFile(message.getMessageHash())) {
                return "Failed to decode message for logcat logging. "
                return "Failed to decode message for logcat logging. "
                        + "Message hash (" + message.getMessageHash() + ") is not available in "
                        + "Message hash (" + message.getMessageHash() + ") is not available in "
                        + "viewerConfig file (" +  mViewerConfigFilePath + "). This might be due "
                        + "viewerConfig file (" +  mViewerConfigFilePath + "). This might be due "