Skip to content

Commit 16571a6

Browse files
GEODE-311: make pdx logging info level
1 parent f770621 commit 16571a6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

gemfire-core/src/main/java/com/gemstone/gemfire/pdx/internal/TypeRegistry.java

+9-6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ public PdxType getType(int typeId) {
122122
if(pdxType != null) {
123123
this.idToType.put(typeId, pdxType);
124124
this.typeToId.put(pdxType, typeId);
125+
if (logger.isInfoEnabled()) {
126+
logger.info("Adding: {}", pdxType.toFormattedString());
127+
}
125128
if (logger.isDebugEnabled()) {
126129
logger.debug("Adding entry into pdx type registry, typeId: {} {}", typeId, pdxType);
127130
}
@@ -186,8 +189,8 @@ public int defineType(PdxType newType) {
186189
if(oldType == null) {
187190
this.idToType.put(id, newType);
188191
this.typeToId.put(newType, id);
189-
if (logger.isDebugEnabled()) {
190-
logger.debug("Defining: {}", newType.toFormattedString());
192+
if (logger.isInfoEnabled()) {
193+
logger.info("Defining: {}", newType.toFormattedString());
191194
}
192195
} else {
193196
//TODO - this might be overkill, but type definition should be rare enough.
@@ -205,8 +208,8 @@ public void addRemoteType(int typeId, PdxType newType) {
205208
this.distributedTypeRegistry.addRemoteType(typeId, newType);
206209
this.idToType.put(typeId, newType);
207210
this.typeToId.put(newType, typeId);
208-
if (logger.isDebugEnabled()) {
209-
logger.debug("Adding, from remote WAN: {}", newType.toFormattedString());
211+
if (logger.isInfoEnabled()) {
212+
logger.info("Adding, from remote WAN: {}", newType.toFormattedString());
210213
}
211214
} else {
212215
//TODO - this might be overkill, but type definition should be rare enough.
@@ -483,8 +486,8 @@ public void addImportedType(int typeId, PdxType importedType) {
483486
this.distributedTypeRegistry.addImportedType(typeId, importedType);
484487
this.idToType.put(typeId, importedType);
485488
this.typeToId.put(importedType, typeId);
486-
if (logger.isDebugEnabled()) {
487-
logger.debug("Importing type: {}", importedType.toFormattedString());
489+
if (logger.isInfoEnabled()) {
490+
logger.info("Importing type: {}", importedType.toFormattedString());
488491
}
489492
}
490493

0 commit comments

Comments
 (0)