Modify

Opened 3 weeks ago

Closed 7 days ago

#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 simon04)

WARNING: No configuration settings found.  Using hardcoded default values for all pools.
WARNING: Region [TMS_BLOCK_v2] Resetting cache

Submitted upstream patches:

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) { 
    7575                    if (record.getLevel().intValue() >= Level.SEVERE.intValue()) {
    7676                        Logging.error(msg);
    7777                    } 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                        }
    8085                    } else if (record.getLevel().intValue() >= Level.INFO.intValue()) {
     86                        // downgrade INFO level to debug, as JCS is too verbose at INFO level
    8187                        Logging.debug(msg);
    8288                    } else {
    8389                        Logging.trace(msg);

Attachments (0)

Change History (3)

comment:1 Changed 3 weeks ago by Don-vip

Milestone: 20.02

comment:2 Changed 7 days ago by simon04

Description: modified (diff)

comment:3 Changed 7 days ago by simon04

Resolution: fixed
Status: assignedclosed

In 15840/josm:

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.