geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hiteshkhame...@apache.org
Subject incubator-geode git commit: GEODE-1640 Used static instance of logger while logging
Date Thu, 07 Jul 2016 16:19:00 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 2ab9d115c -> 4612a193f


GEODE-1640 Used static instance of logger while logging


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/4612a193
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/4612a193
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/4612a193

Branch: refs/heads/develop
Commit: 4612a193f9687fe9b36d1060cdae8b333050ca97
Parents: 2ab9d11
Author: Hitesh Khamesra <hkhamesra@pivotal.io>
Authored: Wed Jul 6 14:28:01 2016 -0700
Committer: Hitesh Khamesra <hkhamesra@pivotal.io>
Committed: Thu Jul 7 09:18:40 2016 -0700

----------------------------------------------------------------------
 .../com/gemstone/gemfire/internal/cache/PartitionedRegion.java   | 4 ++++
 .../java/com/gemstone/gemfire/internal/cache/TXEntryState.java   | 4 ++--
 .../cache/partitioned/DestroyRegionOnDataStoreMessage.java       | 3 ++-
 3 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4612a193/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java
b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java
index 26c91e0..39230c4 100755
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java
@@ -10620,5 +10620,9 @@ public class PartitionedRegion extends LocalRegion implements
     }
     return br.getEntryExpiryTask(key);
   }
+  
+  public Logger getLogger() {
+	return logger;
+  }
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4612a193/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXEntryState.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXEntryState.java
b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXEntryState.java
index c6caefa..9ae0ac3 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXEntryState.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TXEntryState.java
@@ -1759,8 +1759,8 @@ public class TXEntryState implements Releasable
   
   void applyChanges(LocalRegion r, Object key, TXState txState)
   {
-    if (LogService.getLogger().isDebugEnabled()) {
-      LogService.getLogger().debug(
+    if (logger.isDebugEnabled()) {
+      logger.debug(
           "applyChanges txState=" + txState + " ,key=" + key + " ,r="
               + r.getDisplayName() + " ,op=" + this.op + " ,isDirty="
               + isDirty());

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4612a193/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/DestroyRegionOnDataStoreMessage.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/DestroyRegionOnDataStoreMessage.java
b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/DestroyRegionOnDataStoreMessage.java
index 225d1af..4454f81 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/DestroyRegionOnDataStoreMessage.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/partitioned/DestroyRegionOnDataStoreMessage.java
@@ -84,7 +84,8 @@ public final class DestroyRegionOnDataStoreMessage extends PartitionMessage
     	return true;
     }
     
-    org.apache.logging.log4j.Logger logger = LogService.getLogger();
+    
+    org.apache.logging.log4j.Logger logger = pr.getLogger();
     if (logger.isTraceEnabled(LogMarker.DM)) {
       logger.trace("DestroyRegionOnDataStore operateOnRegion: " + pr.getFullPath());
     }


Mime
View raw message