Changeset 88e7d60


Ignore:
Timestamp:
Dec 4, 2011 6:49:50 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
489a0ea
Parents:
0d145fc
Message:
  • IRC Client: Lower log level for connect error to warn (thx echelon/sponge)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelIRCClient.java

    r0d145fc r88e7d60  
    1010import java.util.StringTokenizer;
    1111
     12import net.i2p.I2PException;
    1213import net.i2p.client.streaming.I2PSocket;
    1314import net.i2p.data.Base32;
     
    113114            Thread out = new I2PAppThread(new IrcOutboundFilter(s,i2ps, expectedPong, _log, dcc), "IRC Client " + __clientId + " out", true);
    114115            out.start();
    115         } catch (Exception ex) {
     116        } catch (I2PException ex) {
    116117            if (_log.shouldLog(Log.ERROR))
    117118                _log.error("Error connecting", ex);
     119            //l.log("Error connecting: " + ex.getMessage());
     120            closeSocket(s);
     121            if (i2ps != null) {
     122                synchronized (sockLock) {
     123                    mySockets.remove(sockLock);
     124                }
     125            }
     126        } catch (Exception ex) {
     127            // generally NoRouteToHostException
     128            if (_log.shouldLog(Log.WARN))
     129                _log.warn("Error connecting", ex);
    118130            //l.log("Error connecting: " + ex.getMessage());
    119131            closeSocket(s);
Note: See TracChangeset for help on using the changeset viewer.