Changeset ca14002b


Ignore:
Timestamp:
Jul 4, 2009 4:35:36 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a8a21ddb
Parents:
5eec098
Message:
  • Startup: Log clients.config problems
Location:
router/java/src/net/i2p/router/startup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/startup/ClientAppConfig.java

    r5eec098 rca14002b  
    4848       
    4949        // fall back to use router.config's clientApp.* lines
    50         if (!cfgFile.exists())
     50        if (!cfgFile.exists()) {
     51            System.out.println("Warning - No client config file " + cfgFile.getAbsolutePath());
    5152            return ctx.router().getConfigMap();
     53        }
    5254       
    5355        try {
    5456            DataHelper.loadProps(rv, cfgFile);
    5557        } catch (IOException ioe) {
    56             // _log.warn("Error loading the client app properties from " + cfgFile.getName(), ioe);
     58            System.out.println("Error loading the client app properties from " + cfgFile.getAbsolutePath() + ' ' + ioe);
    5759        }
    5860       
  • router/java/src/net/i2p/router/startup/LoadClientAppsJob.java

    r5eec098 rca14002b  
    3030        }
    3131        List apps = ClientAppConfig.getClientApps(getContext());
     32        if (apps.size() <= 0) {
     33            _log.error("Warning - No client apps or router console configured - we are just a router");
     34            System.err.println("Warning - No client apps or router console configured - we are just a router");
     35            return;
     36        }
    3237        for(int i = 0; i < apps.size(); i++) {
    3338            ClientAppConfig app = (ClientAppConfig) apps.get(i);
Note: See TracChangeset for help on using the changeset viewer.