Ignore:
Timestamp:
2018-04-24T00:03:28+02:00 (6 years ago)
Author:
Don-vip
Message:

fix recent SonarQube issues

File:
1 edited

Legend:

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

    r13649 r13672  
    122122                        Logging.warn("Cannot lock cache directory. Will not use disk cache");
    123123                } catch (IOException e) {
    124                     Logging.warn("Cannot create cache dir \"" + cacheDirLockPath.toString() + "\" lock file: " + e.toString());
     124                    Logging.log(Logging.LEVEL_WARN, "Cannot create cache dir \"" + cacheDirLockPath + "\" lock file:", e);
    125125                    Logging.warn("Will not use disk cache");
    126126                }
     
    200200                // in case any error in setting auxiliary cache, do not use disk cache at all - only memory
    201201                cc.setAuxCaches(new AuxiliaryCache[0]);
     202                Logging.debug(e);
    202203            }
    203204        }
Note: See TracChangeset for help on using the changeset viewer.