Skip to content

Commit

Permalink
log statements improved
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Aug 27, 2012
1 parent 939090c commit ab92bb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/java/org/wyona/yanel/core/map/RealmManager.java
Expand Up @@ -235,7 +235,7 @@ public void readRealms() throws ConfigurationException {
}

/**
* Read realms configuration
* Read realm configurations
* @param realmsConfigFile Realms configuration file
*/
public void readRealms(File realmsConfigFile) throws ConfigurationException {
Expand Down Expand Up @@ -299,7 +299,7 @@ public void readRealms(File realmsConfigFile) throws ConfigurationException {
log.error("Class not found: " + e.getMessage() + ". Fallback to default realm implementation!");
realm = new RealmDefaultImpl(realmLabel, realmId, mountPoint, realmConfigFile);
} catch(Exception e) {
log.info("Default realm implementation will be used.");
log.info("Default realm implementation will be used, because no custom realm implementation configured for realm '" + realmId + "'.");
realm = new RealmDefaultImpl(realmLabel, realmId, mountPoint, realmConfigFile);
}

Expand Down Expand Up @@ -334,6 +334,7 @@ public void readRealms(File realmsConfigFile) throws ConfigurationException {
}
}
}
log.info("All realm configurations have been read.");
} catch (Exception e) {
log.error(e.getMessage(), e);
throw new ConfigurationException("Error setting up realms from file " +
Expand Down

0 comments on commit ab92bb8

Please sign in to comment.