Skip to content
Snippets Groups Projects
Commit cbb7a00f authored by kaloyane's avatar kaloyane
Browse files

minor: do not flood log with redundant messages when nothing is done.

SVN: 20943
parent c0bf2377
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ public class TaskExecutor ...@@ -136,7 +136,7 @@ public class TaskExecutor
{ {
Log4jSimpleLogger logger = new Log4jSimpleLogger(operationLog); Log4jSimpleLogger logger = new Log4jSimpleLogger(operationLog);
File[] files = cleanupTasksFolder.listFiles(FILTER); File[] files = cleanupTasksFolder.listFiles(FILTER);
if (files != null) if (files != null && files.length > 0)
{ {
operationLog.info("Perform " + files.length + " clean up task."); operationLog.info("Perform " + files.length + " clean up task.");
for (File file : files) for (File file : files)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment