rewrite autocomplete in vue.js
This commit is contained in:
@@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
public class QueryCompletionPdbLangParser extends PdbLangParser {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(QueryCompletionPdbLangParser.class);
|
||||
private static final Logger METRICS_LOGGER = LoggerFactory.getLogger("org.lucares.metrics.autocomplete");
|
||||
|
||||
public class Listener implements PdbLangListener, ANTLRErrorListener {
|
||||
|
||||
@@ -71,7 +71,7 @@ public class QueryCompletionPdbLangParser extends PdbLangParser {
|
||||
return new Proposal(p, count > 0);
|
||||
}).forEach(proposals::add);
|
||||
|
||||
LOGGER.trace("proposals for property value {} took {} ms", propertyValuePrefix,
|
||||
METRICS_LOGGER.debug("proposals for property value {} took {} ms", propertyValuePrefix,
|
||||
(System.nanoTime() - startTime) / 1_000_000.0);
|
||||
} else if (_ctx instanceof IdentifierExpressionContext) {
|
||||
final long startTime = System.nanoTime();
|
||||
@@ -83,7 +83,7 @@ public class QueryCompletionPdbLangParser extends PdbLangParser {
|
||||
|
||||
addProposalsForKeys(propertyKeyPrefix, newQueryPattern.toString());
|
||||
|
||||
LOGGER.trace("proposals for property key {} took {} ms", propertyKeyPrefix,
|
||||
METRICS_LOGGER.debug("proposals for property key {} took {} ms", propertyKeyPrefix,
|
||||
(System.nanoTime() - startTime) / 1_000_000.0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user