Changeset 9210 in josm for trunk/src


Ignore:
Timestamp:
2015-12-29T13:19:49+01:00 (9 years ago)
Author:
wiktorn
Message:

Temporary logging of response headers at debug level.

See: #12235

File:
1 edited

Legend:

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

    r9004 r9210  
    1010import java.util.List;
    1111import java.util.Map;
     12import java.util.Map.Entry;
    1213import java.util.Random;
    1314import java.util.Set;
     
    459460        ret.setLastModification(now);
    460461        ret.setEtag(urlConn.getHeaderField("ETag"));
     462
     463        if(Main.isDebugEnabled()) {
     464            for(Entry<String, List<String>> header: urlConn.getHeaderFields().entrySet()) {
     465                log.log(Level.FINE, "Response header - {0}: {1}", new Object[]{header.getKey(), header.getValue()});
     466            }
     467        }
     468
    461469        return ret;
    462470    }
Note: See TracChangeset for help on using the changeset viewer.