You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jb...@apache.org on 2020/01/16 16:36:22 UTC
[lucene-solr] branch master updated: SOLR-14130: Continue to
improve log parsing logic
This is an automated email from the ASF dual-hosted git repository.
jbernste pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 35d8e3d SOLR-14130: Continue to improve log parsing logic
35d8e3d is described below
commit 35d8e3de6d5931bfd6cba3221cfd0dca7f97c1a1
Author: Joel Bernstein <jb...@apache.org>
AuthorDate: Thu Jan 16 11:35:43 2020 -0500
SOLR-14130: Continue to improve log parsing logic
---
solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java b/solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java
index 9a97ca0..0db6364 100644
--- a/solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java
+++ b/solr/core/src/java/org/apache/solr/util/SolrLogPostTool.java
@@ -162,9 +162,7 @@ public class SolrLogPostTool {
}
if (line != null) {
- if (line.contains("QTime=")) {
- return parseQueryRecord(line);
- } else if (line.contains("Registered new searcher")) {
+ if (line.contains("Registered new searcher")) {
return parseNewSearch(line);
} else if (line.contains("path=/update")) {
return parseUpdate(line);
@@ -173,6 +171,8 @@ public class SolrLogPostTool {
return parseError(line, readTrace());
} else if (line.contains("start commit")) {
return parseCommit(line);
+ } else if(line.contains("QTime=")) {
+ return parseQueryRecord(line);
} else {
continue;
}