summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-04 23:54:52 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-04 23:54:52 -0800
commit72adf137392990a02c819d23eb2ef44eeb701e02 (patch)
treefabb8028496972e98e56e4d23e004a79020f50a0
parent4bbc893102dd5558c2e5cb9cf94fa1fdfc8b04ae (diff)
downloadjava-language-server-72adf137392990a02c819d23eb2ef44eeb701e02.zip
Less logging
-rw-r--r--src/main/java/org/javacs/CompileBatch.java4
-rw-r--r--src/main/java/org/javacs/CompileFile.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/org/javacs/CompileBatch.java b/src/main/java/org/javacs/CompileBatch.java
index 847cae2..0a27170 100644
--- a/src/main/java/org/javacs/CompileBatch.java
+++ b/src/main/java/org/javacs/CompileBatch.java
@@ -130,7 +130,7 @@ public class CompileBatch {
var subType = (TypeElement) subMethod.getEnclosingElement();
// TODO need to check if class is compatible as well
if (elements.overrides(subMethod, superMethod, subType)) {
- LOG.info(String.format("...`%s.%s` overrides `%s`", subType, subMethod, superMethod));
+ // LOG.info(String.format("...`%s.%s` overrides `%s`", subType, subMethod, superMethod));
return true;
}
return false;
@@ -211,7 +211,7 @@ public class CompileBatch {
var superMethod = (ExecutableElement) from;
// TODO need to check if class is compatible as well
if (elements.overrides(subMethod, superMethod, subType)) {
- LOG.info(String.format("...`%s.%s` overrides `%s`", subType, subMethod, superMethod));
+ // LOG.info(String.format("...`%s.%s` overrides `%s`", subType, subMethod, superMethod));
return true;
}
return false;
diff --git a/src/main/java/org/javacs/CompileFile.java b/src/main/java/org/javacs/CompileFile.java
index 35a685a..7051377 100644
--- a/src/main/java/org/javacs/CompileFile.java
+++ b/src/main/java/org/javacs/CompileFile.java
@@ -48,20 +48,20 @@ public class CompileFile {
}
public Optional<Element> element(int line, int character) {
- LOG.info(String.format("Looking for element at %s(%d,%d)...", file.getPath(), line, character));
+ // LOG.info(String.format("Looking for element at %s(%d,%d)...", file.getPath(), line, character));
// First, look for a tree path
var path = CompileFocus.findPath(task, root, line, character);
if (path == null) {
- LOG.info("...found nothing");
+ // LOG.info("...found nothing");
return Optional.empty();
}
- LOG.info(String.format("...found tree `%s`", Parser.describeTree(path.getLeaf())));
+ // LOG.info(String.format("...found tree `%s`", Parser.describeTree(path.getLeaf())));
// Then, convert the path to an element
var el = trees.getElement(path);
if (el == null) {
- LOG.info(String.format("...tree does not correspond to an element"));
+ // LOG.info(String.format("...tree does not correspond to an element"));
return Optional.empty();
}