Modify ↓
#18644 closed defect (fixed)
Get rid of useless JCS warnings during startup
Reported by: | simon04 | Owned by: | simon04 |
---|---|---|---|
Priority: | minor | Milestone: | 20.02 |
Component: | Core imagery | Version: | |
Keywords: | Cc: |
Description (last modified by )
WARNING: No configuration settings found. Using hardcoded default values for all pools. WARNING: Region [TMS_BLOCK_v2] Resetting cache
Submitted upstream patches:
- https://github.com/apache/commons-jcs/pull/8 or https://issues.apache.org/jira/projects/JCS/issues/JCS-200
- https://github.com/apache/commons-jcs/pull/9 or https://issues.apache.org/jira/projects/JCS/issues/JCS-201
Alternative:
-
src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
diff --git a/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java b/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java index 2599b8ae1..49ca3d191 100644
a b public void publish(LogRecord record) { 75 75 if (record.getLevel().intValue() >= Level.SEVERE.intValue()) { 76 76 Logging.error(msg); 77 77 } else if (record.getLevel().intValue() >= Level.WARNING.intValue()) { 78 Logging.warn(msg); 79 // downgrade INFO level to debug, as JCS is too verbose at INFO level 78 if (msg.equals("No configuration settings found. Using hardcoded default values for all pools.") 79 || msg.startsWith("Region") && msg.endsWith("Resetting cache")) { // "Region [TMS_BLOCK_v2] Resetting cache" 80 // downgrade useless warnings 81 Logging.debug(msg); 82 } else { 83 Logging.warn(msg); 84 } 80 85 } else if (record.getLevel().intValue() >= Level.INFO.intValue()) { 86 // downgrade INFO level to debug, as JCS is too verbose at INFO level 81 87 Logging.debug(msg); 82 88 } else { 83 89 Logging.trace(msg);
Attachments (0)
Change History (4)
comment:1 by , 5 years ago
Milestone: | → 20.02 |
---|
comment:2 by , 5 years ago
Description: | modified (diff) |
---|
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In 15840/josm: