fix a bug related to hide-extra for json logs

pull/324/head
Timothy Stack 8 years ago
parent 91633d089f
commit 5d12eed17e

@ -999,10 +999,10 @@ static int read_json_field(yajlpp_parse_context *ypc, const unsigned char *str,
json_field_cmp(external_log_format::JLF_VARIABLE,
field_name)) == line_format.end()) {
jlu->jlu_sub_line_count += 1;
}
for (size_t lpc = 0; lpc < len; lpc++) {
if (str[lpc] == '\n') {
jlu->jlu_sub_line_count += 1;
for (size_t lpc = 0; lpc < len; lpc++) {
if (str[lpc] == '\n') {
jlu->jlu_sub_line_count += 1;
}
}
}
}

Loading…
Cancel
Save