diff --git a/services/hilogtool/log_display.cpp b/services/hilogtool/log_display.cpp index 8353dda13161b7873d861c3864dc8d4e952e8593..6bf63aac79f3a024098bbb16895970f9324db332 100644 --- a/services/hilogtool/log_display.cpp +++ b/services/hilogtool/log_display.cpp @@ -413,22 +413,13 @@ void HilogShowLog(HilogShowFormat showFormat, HilogDataMessage* data, HilogArgs* static int printHeadCnt = 0; HilogShowFormatBuffer showBuffer; - char* tag = data->data; char* content = data->data + data->tag_len; - char *pStrtol = nullptr; if (context->headLines) { if (printHeadCnt++ >= context->headLines) { exit(1); } } - if ((context->tag != "") && strcmp(tag, context->tag.c_str())) { - return; - } - if ((context->domain != "") && (data->domain & 0xFFFFF) != - std::strtol(context->domain.c_str(), &pStrtol, DOMAIN_NUMBER_BASE)) { - return; - } if (context->regexArgs != "") { string str = content; if (HilogMatchByRegex(str, context->regexArgs)) {