Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Silence many logspam #1

Open
wants to merge 4 commits into
base: eleven
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion liblog/logprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ static android_LogPriority filterPriForTag(AndroidLogFormat* p_format, const cha
*/
int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag,
android_LogPriority pri) {
return pri >= filterPriForTag(p_format, tag);
if (!strncmp(tag, "QCamera", 7) || !strncmp(tag, "ANDR-PERF-RESOURCE", 18) ||!strncmp(tag, "WCNSS_FILTER", 12) || !strncmp(tag, "mm-3a-core", 10) || !strncmp(tag, "AEC_PORT", 8) || !strncmp(tag, "mm-camera", 9) || !strncmp(tag, "GalleryDatab", 12))
return 0;
else
return pri >= filterPriForTag(p_format, tag);
}

AndroidLogFormat* android_log_format_new() {
Expand Down