liblog: do not check loggability of event logs before sending to logd
This code was introduced to help performance by skipping sending these messages to logd when logd would later drop them. However it has multiple flaws: 1) Event logs aren't super common and non-loggable event logs are even less common, so it would be a trivial benefit if any. 2) This code is not particularly safe as written, which is even acknowledged in the comments. 3) This forces processes that write event logs to allocate a rather sizable amount of memory. Therefore, it's better to simply remove this and let logd drop these messages when it receives them. Bug: 139705697 Test: logging works, liblog-unit-tests Change-Id: Ide01574112e173d4922137b3d3868cf8c2c09086
Loading
Please register or sign in to comment