Changeset 4f6ed70


Ignore:
Timestamp:
Feb 28, 2012 2:35:32 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d6d8c0d
Parents:
cf5d7d2
Message:

remove static logs

Location:
core/java/src/net/i2p/data
Files:
4 edited

Legend:

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

    rcf5d7d2 r4f6ed70  
    3030public class Base32 {
    3131
    32     private final static Log _log = new Log(Base32.class);
     32    //private final static Log _log = new Log(Base32.class);
    3333
    3434    /** The 32 valid Base32 values. */
     
    249249                         usedbits -= 3;
    250250                     } else if (next != 0) {
    251                        _log.warn("Extra data at the end: " + next + "(decimal)");
     251                       //_log.warn("Extra data at the end: " + next + "(decimal)");
    252252                       return null;
    253253                     }
    254254                 }
    255255            } else {
    256                 _log.warn("Bad Base32 input character at " + i + ": " + source[i] + "(decimal)");
     256                //_log.warn("Bad Base32 input character at " + i + ": " + source[i] + "(decimal)");
    257257                return null;
    258258            }
  • core/java/src/net/i2p/data/Base64.java

    rcf5d7d2 r4f6ed70  
    4242public class Base64 {
    4343
    44     private final static Log _log = new Log(Base64.class);
     44    //private final static Log _log = new Log(Base64.class);
    4545
    4646    /**
     
    751751            } // end if: white space, equals sign or better
    752752            else {
    753                 _log.warn("Bad Base64 input character at " + i + ": " + source[i] + "(decimal)");
     753                //_log.warn("Bad Base64 input character at " + i + ": " + source[i] + "(decimal)");
    754754                return null;
    755755            } // end else:
  • core/java/src/net/i2p/data/DataStructureImpl.java

    rcf5d7d2 r4f6ed70  
    1515import java.io.InputStream;
    1616
     17import net.i2p.I2PAppContext;
    1718import net.i2p.crypto.SHA256Generator;
    1819import net.i2p.util.Log;
     
    2425 */
    2526public abstract class DataStructureImpl implements DataStructure {
    26     private final static Log _log = new Log(DataStructureImpl.class);
    2727   
    2828    public String toBase64() {
     
    4949            return baos.toByteArray();
    5050        } catch (IOException ioe) {
    51             _log.error("Error writing out the byte array", ioe);
     51            Log log = I2PAppContext.getGlobalContext().logManager().getLog(getClass());
     52            log.error("Error writing out the byte array", ioe);
    5253            return null;
    5354        } catch (DataFormatException dfe) {
    54             _log.error("Error writing out the byte array", dfe);
     55            Log log = I2PAppContext.getGlobalContext().logManager().getLog(getClass());
     56            log.error("Error writing out the byte array", dfe);
    5557            return null;
    5658        }
  • core/java/src/net/i2p/data/Payload.java

    rcf5d7d2 r4f6ed70  
    2727 */
    2828public class Payload extends DataStructureImpl {
    29     private final static Log _log = new Log(Payload.class);
     29    //private final static Log _log = new Log(Payload.class);
    3030    private byte[] _encryptedData;
    3131    private byte[] _unencryptedData;
     
    8383        int read = read(in, _encryptedData);
    8484        if (read != size) throw new DataFormatException("Incorrect number of bytes read in the payload structure");
    85         if (_log.shouldLog(Log.DEBUG))
    86             _log.debug("read payload: " + read + " bytes");
     85        //if (_log.shouldLog(Log.DEBUG))
     86        //    _log.debug("read payload: " + read + " bytes");
    8787    }
    8888   
     
    9191        DataHelper.writeLong(out, 4, _encryptedData.length);
    9292        out.write(_encryptedData);
    93         if (_log.shouldLog(Log.DEBUG))
    94             _log.debug("wrote payload: " + _encryptedData.length);
     93        //if (_log.shouldLog(Log.DEBUG))
     94        //    _log.debug("wrote payload: " + _encryptedData.length);
    9595    }
    9696
Note: See TracChangeset for help on using the changeset viewer.