Skip to content

Commit 956825b

Browse files
committed
additional cleanup and testing
1 parent 49baac2 commit 956825b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/graylog/plugins/slookup/StreamLookupFunction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public List<String> evaluate(FunctionArgs functionArgs, EvaluationContext evalua
9595

9696
if (!dstField.equals("timestamp")) {
9797
this.query = dstField + ":" + srcFieldValue.replaceAll(escapeChars, "\\\\$0");
98-
LOG.info("Query: {}", this.query.toString());
98+
LOG.debug("SLookup Query: {}", this.query.toString());
9999
}
100100

101101
this.filter = "streams:" + stream;
@@ -125,14 +125,14 @@ public List<String> evaluate(FunctionArgs functionArgs, EvaluationContext evalua
125125
SearchResult response = this.searches.search(searchesConfig);
126126
LOG.debug("Search config - field: {}, order: {}", searchesConfig.sorting().getField().toString(), searchesConfig.sorting().asElastic().toString());
127127
if (response.getResults().size() == 0) {
128-
LOG.info("No Search Results observed.");
128+
LOG.debug("No Search Results observed.");
129129
return blankList;
130130
}
131131
else
132132
{
133133

134134
if (response.getResults().size() >= 1) {
135-
LOG.info("There are results");
135+
LOG.debug("There are results");
136136
List<ResultMessage> resultMessages = response.getResults();
137137
try {
138138
//Map<String, Object> resultFields = resultMessages.get(0).getMessage().getFields();

0 commit comments

Comments
 (0)