moved warning message so its only printed if the host isn't specified

This commit is contained in:
Graeme Rocher
2010-11-05 12:03:38 +01:00
parent ab051120a6
commit 42b2746fc9

View File

@@ -89,8 +89,9 @@ public class MongoFactoryBean implements FactoryBean<Mongo>, InitializingBean,
// apply defaults - convenient when used to configure for tests // apply defaults - convenient when used to configure for tests
// in an application context // in an application context
if (mongo == null) { if (mongo == null) {
logger.warn("Property mongo not specified. Using default configuration");
if (host == null) { if (host == null) {
logger.warn("Property host not specified. Using default configuration");
mongo = new Mongo(); mongo = new Mongo();
} }
else { else {