Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years 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 (4)

comment:1 by Don-vip, 4 years ago

Milestone: 20.02

comment:2 by simon04, 4 years ago

Description: modified (diff)

comment:3 by simon04, 4 years ago

Resolution: fixed
Status: assignedclosed

In 15840/josm:

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

comment:4 by simon04, 4 years ago

In 16401/josm:

see #19208, see #18644 - JCS: remove workaround for useless JCS warnings (fixed upstream)

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.