geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [3/3] geode git commit: GEODE-2277 PDX logging cleanup
Date Mon, 09 Jan 2017 19:16:59 GMT
GEODE-2277 PDX logging cleanup


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

Branch: refs/heads/develop
Commit: 1eceed2eb5700a18aedb72101fe8639e2f7b2374
Parents: aa2f838
Author: Bruce Schuchardt <bschuchardt@pivotal.io>
Authored: Mon Jan 9 09:46:59 2017 -0800
Committer: Bruce Schuchardt <bschuchardt@pivotal.io>
Committed: Mon Jan 9 11:16:38 2017 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/geode/pdx/internal/EnumInfo.java  | 2 +-
 .../src/main/java/org/apache/geode/pdx/internal/PdxType.java   | 6 +++---
 .../org/apache/geode/pdx/internal/PeerTypeRegistration.java    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/1eceed2e/geode-core/src/main/java/org/apache/geode/pdx/internal/EnumInfo.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/pdx/internal/EnumInfo.java b/geode-core/src/main/java/org/apache/geode/pdx/internal/EnumInfo.java
index 380ed73..add54c7 100644
--- a/geode-core/src/main/java/org/apache/geode/pdx/internal/EnumInfo.java
+++ b/geode-core/src/main/java/org/apache/geode/pdx/internal/EnumInfo.java
@@ -159,7 +159,7 @@ public class EnumInfo implements DataSerializableFixedID {
   }
 
   public String toFormattedString() {
-    return getClass().getSimpleName() + "[\n" + clazz + "." + name + "]";
+    return getClass().getSimpleName() + "[\n        " + clazz + "." + name + "]";
   }
 
   @Override

http://git-wip-us.apache.org/repos/asf/geode/blob/1eceed2e/geode-core/src/main/java/org/apache/geode/pdx/internal/PdxType.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/pdx/internal/PdxType.java b/geode-core/src/main/java/org/apache/geode/pdx/internal/PdxType.java
index eaeee08..cd3d9d9 100644
--- a/geode-core/src/main/java/org/apache/geode/pdx/internal/PdxType.java
+++ b/geode-core/src/main/java/org/apache/geode/pdx/internal/PdxType.java
@@ -360,11 +360,11 @@ public class PdxType implements DataSerializable {
   }
 
   public String toFormattedString() {
-    StringBuffer sb = new StringBuffer("PdxType[\n    ");
+    StringBuffer sb = new StringBuffer("PdxType[");
     sb.append("dsid=").append(getDSId());
     sb.append(", typenum=").append(getTypeNum());
-    sb.append(", name=").append(this.className);
-    sb.append(", fields=[");
+    sb.append("\n        name=").append(this.className);
+    sb.append("\n        fields=[");
     for (PdxField vft : fields) {
       sb.append("\n        ");
       sb.append(/* vft.getFieldName() + ":" + vft.getTypeId() */ vft.toString());

http://git-wip-us.apache.org/repos/asf/geode/blob/1eceed2e/geode-core/src/main/java/org/apache/geode/pdx/internal/PeerTypeRegistration.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/pdx/internal/PeerTypeRegistration.java
b/geode-core/src/main/java/org/apache/geode/pdx/internal/PeerTypeRegistration.java
index 641d9f8..b13adb1 100644
--- a/geode-core/src/main/java/org/apache/geode/pdx/internal/PeerTypeRegistration.java
+++ b/geode-core/src/main/java/org/apache/geode/pdx/internal/PeerTypeRegistration.java
@@ -174,10 +174,10 @@ public class PeerTypeRegistration implements TypeRegistration {
       public void beforeCreate(EntryEvent<Object, Object> event) throws CacheWriterException
{
         Object newValue = event.getNewValue();
         if (newValue instanceof PdxType) {
-          logger.info("Adding type to PdxTypes: {}",
+          logger.info("Adding new type: {}",
               ((PdxType) event.getNewValue()).toFormattedString());
         } else {
-          logger.info("Adding enum to PdxTypes: {} {}", event.getKey(),
+          logger.info("Adding new type: {} {}", event.getKey(),
               ((EnumInfo)newValue).toFormattedString());
         }
       }


Mime
View raw message