remove warning by using the logger

This commit is contained in:
2017-04-02 11:15:41 +02:00
parent 2d78a70883
commit 7b92a306f3
2 changed files with 11 additions and 0 deletions

View File

@@ -140,4 +140,12 @@ public class PlotSettings {
throw new IllegalArgumentException(string + " is an unknown chrono unit"); throw new IllegalArgumentException(string + " is an unknown chrono unit");
} }
} }
@Override
public String toString() {
return "PlotSettings [query=" + query + ", height=" + height + ", width=" + width + ", groupBy=" + groupBy
+ ", limitBy=" + limitBy + ", limit=" + limit + ", dateFrom=" + dateFrom + ", dateRange=" + dateRange
+ "]";
}
} }

View File

@@ -59,6 +59,8 @@ public class Plotter {
public PlotResult plot(final PlotSettings plotSettings) throws InternalPlottingException { public PlotResult plot(final PlotSettings plotSettings) throws InternalPlottingException {
LOGGER.trace("start plot: {}", plotSettings);
final String tmpSubDir = uniqueDirectoryName(); final String tmpSubDir = uniqueDirectoryName();
final Path tmpDir = tmpBaseDir.resolve(tmpSubDir); final Path tmpDir = tmpBaseDir.resolve(tmpSubDir);
try { try {
@@ -116,6 +118,7 @@ public class Plotter {
throw new InternalPlottingException("Plotting failed: " + e.getMessage(), e); throw new InternalPlottingException("Plotting failed: " + e.getMessage(), e);
} finally { } finally {
FileUtils.delete(tmpDir); FileUtils.delete(tmpDir);
LOGGER.trace("done plot");
} }
} }