Changeset 059ae3a


Ignore:
Timestamp:
Nov 3, 2013 3:00:00 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8296f822
Parents:
67e242c
Message:
  • Add network status to event log
Location:
router/java/src/net/i2p/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java

    r67e242c r059ae3a  
    2828import net.i2p.router.RouterContext;
    2929import net.i2p.router.transport.udp.UDPTransport;
     30import net.i2p.router.util.EventLog;
    3031import net.i2p.util.Addresses;
    3132import net.i2p.util.Log;
     
    421422        public void timeReached() {
    422423             boolean good = Addresses.isConnected();
    423              _netMonitorStatus = good;
     424             if (_netMonitorStatus != good) {
     425                 _context.router().eventLog().addEvent(EventLog.NETWORK, good ? "connected" : "disconnected");
     426                 _netMonitorStatus = good;
     427             }
    424428             reschedule(good ? LONG_DELAY : SHORT_DELAY);
    425429        }
  • router/java/src/net/i2p/router/util/EventLog.java

    r67e242c r059ae3a  
    4141    public static final String INSTALLED = "installed";
    4242    public static final String INSTALL_FAILED = "intallFailed";
     43    public static final String NETWORK = "network";
    4344    public static final String NEW_IDENT = "newIdent";
    4445    public static final String OOM = "oom";
Note: See TracChangeset for help on using the changeset viewer.