Changeset c626bb6 for router


Ignore:
Timestamp:
Mar 8, 2018 2:11:40 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1412dbd
Parents:
c5b6a4e
Message:

log flush tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Router.java

    rc5b6a4e rc626bb6  
    769769            _state = state;
    770770        }
    771         if (_log != null && state != State.STOPPED && _log.shouldLog(Log.WARN))
     771        if (_log != null && oldState != state && state != State.STOPPED && _log.shouldLog(Log.WARN)) {
    772772            _log.warn("Router state change from " + oldState + " to " + state /* , new Exception() */ );
     773            //for debugging
     774            _context.logManager().flush();
     775        }
    773776    }
    774777
     
    809812                changeState(State.RUNNING);
    810813        }
    811         // for debugging
    812         if (_log.shouldWarn())
    813             _context.logManager().flush();
    814814    }
    815815
     
    826826                changeState(State.RUNNING);
    827827        }
    828         // for debugging
    829         if (_log.shouldWarn())
    830             _context.logManager().flush();
    831828    }
    832829
Note: See TracChangeset for help on using the changeset viewer.