Filtering out LowBattery crash logs (#2080)

The mobile 'LowBattery' crash logs provide little if any data of value,
and seem to be nothing more than notification events.  We're filtering
these out of the crashes table.
This commit is contained in:
Nick Anderson 2016-05-10 08:01:28 -07:00
parent 947799d28e
commit 2ac2eef3c8

View File

@ -140,7 +140,8 @@ QueryData genCrashLogs(QueryContext& context) {
std::vector<std::string> files;
if (listFilesInDirectory(path, files)) {
for (const auto& lf : files) {
if (alg::ends_with(lf, ".crash")) {
if (alg::ends_with(lf, ".crash") &&
lf.find("LowBattery") == std::string::npos) {
Row r;
r["type"] = type;
readCrashDump(lf, r);