usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdun...@apache.org
Subject usergrid git commit: Add job id to log
Date Fri, 08 Apr 2016 17:58:54 GMT
Repository: usergrid
Updated Branches:
  refs/heads/release-2.1.1 e0a995243 -> 29d7660ee


Add job id to log


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/29d7660e
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/29d7660e
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/29d7660e

Branch: refs/heads/release-2.1.1
Commit: 29d7660eebdf471fe63c78c10b3c725bbbf40109
Parents: e0a9952
Author: Mike Dunker <mdunker@apigee.com>
Authored: Fri Apr 8 10:58:20 2016 -0700
Committer: Mike Dunker <mdunker@apigee.com>
Committed: Fri Apr 8 10:58:20 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/usergrid/batch/job/OnlyOnceJob.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/29d7660e/stack/core/src/main/java/org/apache/usergrid/batch/job/OnlyOnceJob.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/batch/job/OnlyOnceJob.java b/stack/core/src/main/java/org/apache/usergrid/batch/job/OnlyOnceJob.java
index 9b1fb05..83cac06 100644
--- a/stack/core/src/main/java/org/apache/usergrid/batch/job/OnlyOnceJob.java
+++ b/stack/core/src/main/java/org/apache/usergrid/batch/job/OnlyOnceJob.java
@@ -77,8 +77,8 @@ public abstract class OnlyOnceJob implements Job {
     @Override
     public void execute( JobExecution execution ) throws Exception {
 
-        logger.info("Executing one-time job, LockManager is {}", lockManager == null ? "null"
: "not null");
         String lockId = execution.getJobId().toString();
+        logger.info("Executing one-time job {}, LockManager is {}", lockId, lockManager ==
null ? "null" : "not null");
 
         Lock lock = lockManager.createLock( emf.getManagementAppId(), String.format( "/jobs/%s",
lockId ) );
 


Mime
View raw message