Repository: logging-log4j2
Updated Branches:
  refs/heads/master 0b4fb55dd -> 3fd115cad


Slightly better internal logging.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/3fd115ca
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/3fd115ca
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/3fd115ca

Branch: refs/heads/master
Commit: 3fd115cadb2eedbac26a0968343d722e8e57df10
Parents: 0b4fb55
Author: Gary Gregory <[email protected]>
Authored: Tue Jul 18 20:26:19 2017 -0700
Committer: Gary Gregory <[email protected]>
Committed: Tue Jul 18 20:26:19 2017 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/config/ConfigurationScheduler.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/3fd115ca/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationScheduler.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationScheduler.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationScheduler.java
index 71b5a80..17e28b5 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationScheduler.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationScheduler.java
@@ -70,7 +70,7 @@ public class ConfigurationScheduler extends AbstractLifeCycle 
{
                 try {
                     executorService.awaitTermination(timeout, timeUnit);
                 } catch (final InterruptedException inner) {
-                    LOGGER.warn("ConfigurationScheduler stopped but some 
scheduled services may not have completed.");
+                    LOGGER.warn("{} stopped but some scheduled services may 
not have completed.", name);
                 }
                 // Preserve interrupt status
                 Thread.currentThread().interrupt();
@@ -153,7 +153,7 @@ public class ConfigurationScheduler extends 
AbstractLifeCycle {
         final ScheduledFuture<?> future = schedule(runnable, 
nextFireInterval(fireDate), TimeUnit.MILLISECONDS);
         final CronScheduledFuture<?> cronScheduledFuture = new 
CronScheduledFuture<>(future, fireDate);
         runnable.setScheduledFuture(cronScheduledFuture);
-        LOGGER.debug("Scheduled cron expression {} to fire at {}", 
cronExpression.getCronExpression(), fireDate);
+        LOGGER.debug("{} scheduled cron expression {} to fire at {}", name, 
cronExpression.getCronExpression(), fireDate);
         return cronScheduledFuture;
     }
 
@@ -229,7 +229,7 @@ public class ConfigurationScheduler extends 
AbstractLifeCycle {
             try {
                 final long millis = scheduledFuture.getFireTime().getTime() - 
System.currentTimeMillis();
                 if (millis > 0) {
-                    LOGGER.debug("Cron thread woke up {} millis early. 
Sleeping", millis);
+                    LOGGER.debug("{} Cron thread woke up {} millis early. 
Sleeping", name, millis);
                     try {
                         Thread.sleep(millis);
                     } catch (final InterruptedException ie) {
@@ -242,7 +242,7 @@ public class ConfigurationScheduler extends 
AbstractLifeCycle {
             } finally {
                 final Date fireDate = cronExpression.getNextValidTimeAfter(new 
Date());
                 final ScheduledFuture<?> future = schedule(this, 
nextFireInterval(fireDate), TimeUnit.MILLISECONDS);
-                LOGGER.debug("Cron expression {} scheduled to fire again at 
{}", cronExpression.getCronExpression(),
+                LOGGER.debug("{} Cron expression {} scheduled to fire again at 
{}", name, cronExpression.getCronExpression(),
                         fireDate);
                 scheduledFuture.reset(future, fireDate);
             }

Reply via email to