Fixed leftover from merge with S4-22
(schedule only 1 timer activity)
diff --git a/subprojects/s4-core/src/main/java/org/apache/s4/core/ProcessingElement.java b/subprojects/s4-core/src/main/java/org/apache/s4/core/ProcessingElement.java
index df1b720..594043f 100644
--- a/subprojects/s4-core/src/main/java/org/apache/s4/core/ProcessingElement.java
+++ b/subprojects/s4-core/src/main/java/org/apache/s4/core/ProcessingElement.java
@@ -382,9 +382,6 @@
return this;
timer = new Timer();
- logger.info("Created timer for PE prototype [{}] with interval [{}].", this.getClass().getName(),
- timerIntervalInMilliseconds);
- timer.schedule(new OnTimeTask(), 0, timerIntervalInMilliseconds);
return this;
}
@@ -508,7 +505,8 @@
/* Start timer. */
if (timer != null) {
timer.schedule(new OnTimeTask(), 0, timerIntervalInMilliseconds);
- logger.info("Started timer for PE [{}] with ID [{}].", this.getClass().getName(), id);
+ logger.debug("Started timer for PE prototype [{}], ID [{}] with interval [{}].", new String[] {
+ this.getClass().getName(), id, String.valueOf(timerIntervalInMilliseconds) });
}
/* Check if this PE is annotated as thread safe. */