Changeset 15840 in josm


Ignore:
Timestamp:
2020-02-11T00:09:23+01:00 (2 weeks ago)
Author:
simon04
Message:

fix #18644 - Get rid of useless JCS warnings during startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r13672 r15840  
    7676                        Logging.error(msg);
    7777                    } else if (record.getLevel().intValue() >= Level.WARNING.intValue()) {
    78                         Logging.warn(msg);
     78                        // Get rid of useless JCS warnings, see #18644
     79                        // Pending upstream patch: https://issues.apache.org/jira/projects/JCS/issues/JCS-200
     80                        // Pending upstream patch: https://issues.apache.org/jira/projects/JCS/issues/JCS-201
     81                        if (msg.equals("No configuration settings found.  Using hardcoded default values for all pools.")
     82                                || msg.startsWith("Region") && msg.endsWith("Resetting cache")) { // "Region [TMS_BLOCK_v2] Resetting cache"
     83                            Logging.debug(msg);
     84                        } else {
     85                            Logging.warn(msg);
     86                        }
    7987                        // downgrade INFO level to debug, as JCS is too verbose at INFO level
    8088                    } else if (record.getLevel().intValue() >= Level.INFO.intValue()) {
Note: See TracChangeset for help on using the changeset viewer.