Skip to content

Commit f2c681e

Browse files
committed
Summary: Reporting a warning when a custom thumbnail not found is verbose #181
Context: Reporting a warning when a custom thumbnail not found 404 is verbose and results in excessive logging in catalina.out. Change: Change the logging level from WARN to INFO for the hasThumbnail() method of the DataPackageManagerClient class and set a specific log4j entry to set logging for this class to WARN or more severe for production and staging DataPortals.
1 parent 6d9cbbd commit f2c681e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/edu/lternet/pasta/client/DataPackageManagerClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ public boolean hasThumbnail(String scope, String identifier, String revision, St
23572357
if (statusCode == HttpStatus.SC_OK) {
23582358
hasThumbnail = true;
23592359
} else {
2360-
logger.warn(entityString);
2360+
logger.info(entityString);
23612361
}
23622362
} catch (Exception e) {
23632363
logger.error(e.getMessage());

0 commit comments

Comments
 (0)