diff options
author | 2024-03-26 21:52:38 +0000 | |
---|---|---|
committer | 2024-03-27 15:52:52 +0000 | |
commit | 11d223bacb37a77abe09b2841bf3a0bcf4c212d3 (patch) | |
tree | c3375423123685cd55fce93a65fa6ab536c91fce /libs/input/InputConsumerNoResampling.cpp | |
parent | 232f2712d9abc50a421041e5a090d1f1d5c6b601 (diff) |
Add the name of channel receiving bad data
When the InputReceiver gets bad data from the other end of the channel, we currently don't print the channel information. As a result, when this crash happens, we only learn about the process name. Add the channel info to this crash so that it's more useful going forward.
Bug: 329059530
Change-Id: Iad4c892dee37a9bf35e790781a2c39431d5a146a
Test: presubmit
Diffstat (limited to 'libs/input/InputConsumerNoResampling.cpp')
-rw-r--r-- | libs/input/InputConsumerNoResampling.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/input/InputConsumerNoResampling.cpp b/libs/input/InputConsumerNoResampling.cpp index 52acb51910..76f2b4a4f8 100644 --- a/libs/input/InputConsumerNoResampling.cpp +++ b/libs/input/InputConsumerNoResampling.cpp @@ -413,10 +413,9 @@ void InputConsumerNoResampling::handleMessage(const InputMessage& msg) const { case InputMessage::Type::FINISHED: case InputMessage::Type::TIMELINE: { - LOG_ALWAYS_FATAL("Consumed a %s message, which should never be seen by " - "InputConsumer on %s", - ftl::enum_string(msg.header.type).c_str(), - mChannel->getName().c_str()); + LOG(FATAL) << "Consumed a " << ftl::enum_string(msg.header.type) + << " message, which should never be seen by InputConsumer on " + << mChannel->getName(); break; } |