Skip to content

Commit

Permalink
#362 less logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 7, 2019
1 parent 8630cbf commit 926dcab
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/main/java/org/jpeek/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,22 @@ public void analyze() throws IOException {
final XML skeleton = new Skeleton(base).xml();
final Collection<XSL> layers = new LinkedList<>();
if (this.params.containsKey("include-ctors")) {
Logger.info(this, "Constructors will be included");
Logger.debug(this, "Constructors will be included");
} else {
layers.add(App.xsl("layers/no-ctors.xsl"));
Logger.info(this, "Constructors will be ignored");
Logger.debug(this, "Constructors will be ignored");
}
if (this.params.containsKey("include-static-methods")) {
Logger.info(this, "Static methods will be included");
Logger.debug(this, "Static methods will be included");
} else {
layers.add(App.xsl("layers/no-static-methods.xsl"));
Logger.info(this, "Static methods will be ignored");
Logger.debug(this, "Static methods will be ignored");
}
if (this.params.containsKey("include-private-methods")) {
Logger.info(this, "Private methods will be included");
Logger.debug(this, "Private methods will be included");
} else {
layers.add(App.xsl("layers/no-private-methods.xsl"));
Logger.info(this, "Private methods will be ignored");
Logger.debug(this, "Private methods will be ignored");
}
final XSL chain = new XSLChain(layers);
this.save(skeleton.toString(), "skeleton.xml");
Expand Down Expand Up @@ -295,7 +295,7 @@ public void analyze() throws IOException {
reports
)
).value();
Logger.info(
Logger.debug(
this, "%d XML reports created in %[ms]s",
reports.size(), System.currentTimeMillis() - start
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jpeek/DefaultBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public String toString() {
public Iterable<Path> files() throws IOException {
try (Stream<Path> stream = Files.walk(this.dir)) {
final List<Path> files = stream.collect(Collectors.toList());
Logger.info(this, "Found %d files in %s", files.size(), this.dir);
Logger.debug(this, "Found %d files in %s", files.size(), this.dir);
return files;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jpeek/Report.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void save(final Path target) throws IOException {
)
)
).intValue();
Logger.info(
Logger.debug(
this, "%s.xml generated in %[ms]s",
this.metric, System.currentTimeMillis() - start
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jpeek/skeleton/Classes.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public Iterator<CtClass> iterator() {
Comparator.comparing(CtClass::getName)
);
unique.addAll(classes);
Logger.info(
Logger.debug(
this, "%d classes found and parsed via Javassist in %[ms]s",
unique.size(), System.currentTimeMillis() - start
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jpeek/skeleton/Skeleton.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private Iterable<Map.Entry<String, Directives>> packages() {
map.putIfAbsent(ent.getKey(), new Directives());
map.get(ent.getKey()).append(ent.getValue());
}
Logger.info(
Logger.debug(
this, "%d classes parsed via ASM in %[ms]s",
map.size(), System.currentTimeMillis() - start
);
Expand Down

0 comments on commit 926dcab

Please # to comment.