Changeset 8a69dc0


Ignore:
Timestamp:
Jun 2, 2015 8:44:10 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
07627152
Parents:
39dc60c
Message:

only log reseed network disconnected warning once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/reseed/ReseedChecker.java

    r39dc60c r8a69dc0  
    3232    private volatile String _lastStatus = "";
    3333    private volatile String _lastError = "";
     34    private volatile boolean _networkLogged;
    3435
    3536    public static final int MINIMUM = 50;
     
    8081        if (!noReseedFile.exists() && !noReseedFileAlt1.exists() && !noReseedFileAlt2.exists() && !noReseedFileAlt3.exists()) {
    8182            if (!Addresses.isConnected()) {
    82                 _log.logAlways(Log.WARN, "Cannot reseed, no network connection");
     83                if (!_networkLogged) {
     84                    _log.logAlways(Log.WARN, "Cannot reseed, no network connection");
     85                    _networkLogged = true;
     86                }
    8387                return false;
    8488            }
     89            _networkLogged = false;
    8590            if (count <= 1)
    8691                _log.logAlways(Log.INFO, "Downloading peer router information for a new I2P installation");
Note: See TracChangeset for help on using the changeset viewer.