Changeset 15967 in josm for trunk/src/org


Ignore:
Timestamp:
2020-02-29T21:56:16+01:00 (5 years ago)
Author:
simon04
Message:

see #18812 - HttpClient: debug logging of request headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r15799 r15967  
    143143            ConnectionResponse cr;
    144144            try {
     145                if (Logging.isDebugEnabled()) {
     146                    Logging.debug("REQUEST HEADERS: {0}", headers);
     147                }
    145148                cr = performConnection();
    146149                final boolean hasReason = reasonForRequest != null && !reasonForRequest.isEmpty();
     
    155158                if (Logging.isDebugEnabled()) {
    156159                    try {
    157                         Logging.debug("RESPONSE: {0}", cr.getHeaderFields());
     160                        Logging.debug("RESPONSE HEADERS: {0}", cr.getHeaderFields());
    158161                    } catch (IllegalArgumentException e) {
    159162                        Logging.warn(e);
Note: See TracChangeset for help on using the changeset viewer.