Changeset 9190 in josm for trunk/src/org


Ignore:
Timestamp:
2015-12-28T11:38:32+01:00 (4 years ago)
Author:
simon04
Message:

see #12231 - Fix logging of reasonForRequest

File:
1 edited

Legend:

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

    r9185 r9190  
    112112            try {
    113113                connection.connect();
    114                 final boolean hasReason = reasonForRequest != null && "".equalsIgnoreCase(reasonForRequest);
     114                final boolean hasReason = reasonForRequest != null && !"".equalsIgnoreCase(reasonForRequest);
    115115                Main.info("{0} {1}{2} -> {3}{4}",
    116116                        requestMethod, url, hasReason ? " (" + reasonForRequest + ")" : "",
Note: See TracChangeset for help on using the changeset viewer.