Skip to content

Commit 707af75

Browse files
committed
Rewored some log statements.
1 parent bd12080 commit 707af75

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/main/java/org/dataone/cn/indexer/object/legacystore/LegacyStoreObjManager.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public LegacyStoreObjManager() throws ServiceFailure {
9595
if (documentRootDir.equals(dataRootDir)) {
9696
ifDataAndDocRootSame = true;
9797
}
98-
logger.info("ObjectManager.constructor - the root document directory is " +
99-
documentRootDir + " and the root data directory is " + dataRootDir +
100-
" Are they same?" + ifDataAndDocRootSame);
98+
logger.info(
99+
"The root document directory is " + documentRootDir + " and the root data directory is "
100+
+ dataRootDir + " Are they same?" + ifDataAndDocRootSame);
101101

102102
}
103103

@@ -169,22 +169,19 @@ public org.dataone.service.types.v1.SystemMetadata getSystemMetadata(String id)
169169
}
170170
}
171171
}
172-
logger.debug(
173-
"ObjectManager.getSystemMetadata - finish getting the system metadata via the "
174-
+ "DataONE API call for the pid " + id);
172+
logger.debug("Finish getting the system metadata via the DataONE API call for the pid "
173+
+ id);
175174
} catch (NotAuthorized e) {
176175
logger.info(
177-
"ObjectManager.getSystemMetadata - failed to get the system metadata via the "
178-
+ "DataONE API call for the pid "
176+
"Failed to get the system metadata via the DataONE API call for the pid "
179177
+ id + " since it is not authorized. We will refresh the token and try again");
180178
refreshD1Node();
181179
sysmeta = getSystemMetadataByAPI(id);
182180
}
183181
long end = System.currentTimeMillis();
184182
logger.info(
185-
"ObjectManager.getSystemMetadata - finish getting the system metadata via DataONE API"
186-
+ " for the pid "
187-
+ id + " and it took " + (end - start) + "milliseconds");
183+
"Finish getting the system metadata via DataONE API for the pid " + id + " and it took "
184+
+ (end - start) + "milliseconds");
188185

189186
return sysmeta;
190187
}

0 commit comments

Comments
 (0)