Log invalid gc schedule configuration

Change-Id: Ia40b163e156891f8fe351928e4c1d6073a6c34b7
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-06-25 08:16:40 +02:00
parent 7f26af4076
commit 59ee9151ee

View File

@@ -54,7 +54,8 @@ public class GarbageCollectionRunner implements Runnable {
if (delay == MISSING_CONFIG && interval == MISSING_CONFIG) {
gcLog.info("Ignoring missing gc schedule configuration");
} else if (delay < 0 || interval <= 0) {
gcLog.warn("Ignoring invalid gc schedule configuration");
gcLog.warn(String.format(
"Ignoring invalid gc schedule configuration: %s", scheduleConfig));
} else {
queue.getDefaultQueue().scheduleAtFixedRate(gcRunner, delay,
interval, TimeUnit.MILLISECONDS);