Fix a bottleneck in log processing 16/232116/1
authorMichal Bloch <m.bloch@samsung.com>
Tue, 28 Apr 2020 09:19:32 +0000 (11:19 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 28 Apr 2020 09:35:23 +0000 (11:35 +0200)
Change-Id: I64cd95f2f6d6f1ba8b9967e4978f43e02bfdb311
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logger/logger.c

index 07378ba..7487836 100644 (file)
@@ -825,7 +825,7 @@ int service_reader_file(struct reader* reader)
                        add_recv_timestamp(&entry.header);
 
                        if (!log_should_print_line(reader->filter, &entry.header))
-                               return 0;
+                               continue;
 
                        logfile_write_with_rotation(&entry.header, &reader->file, DLOGUTIL_SORT_SENT_REAL);
                }