Changeset faadbf7


Ignore:
Timestamp:
Jun 17, 2013 7:53:01 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
00d1b75
Parents:
180d4254
Message:

debug log tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/Payload.java

    r180d4254 rfaadbf7  
    120120    @Override
    121121    public String toString() {
    122         if (true) return "[Payload]";
    123         StringBuilder buf = new StringBuilder(128);
     122        StringBuilder buf = new StringBuilder(32);
    124123        buf.append("[Payload: ");
    125         if (_unencryptedData != null)
    126             buf.append("\n\tData: ").append(DataHelper.toString(_unencryptedData, 16));
     124        if (_encryptedData != null)
     125            buf.append(_encryptedData.length).append(" bytes");
    127126        else
    128             buf.append("\n\tData: *encrypted* = [").append(DataHelper.toString(_encryptedData, 16)).append("]");
     127            buf.append("null");
    129128        buf.append("]");
    130129        return buf.toString();
Note: See TracChangeset for help on using the changeset viewer.