remove warning by using the logger
This commit is contained in:
@@ -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
|
||||||
|
+ "]";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user