[Yanel-commits] rev 45752 -
public/yanel/trunk/src/core/java/org/wyona/yanel/core/source
michi at wyona.com
michi at wyona.com
Mon Nov 30 14:07:45 CET 2009
Author: michi
Date: 2009-11-30 14:07:44 +0100 (Mon, 30 Nov 2009)
New Revision: 45752
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/RTabstractResolver.java
Log:
log level improved
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/RTabstractResolver.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/RTabstractResolver.java 2009-11-30 13:07:15 UTC (rev 45751)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/RTabstractResolver.java 2009-11-30 13:07:44 UTC (rev 45752)
@@ -79,7 +79,7 @@
}
URL url = clazz.getClassLoader().getResource(packageName.replace('.','/') + "/" + getPathPrefix() + path);
if (url == null) {
- log.warn("Path " + getPathPrefix() + path + " does not seem to be contained within package " + packageName + " of resource " + name);
+ log.info("Path " + getPathPrefix() + path + " does not seem to be contained within package " + packageName + " of resource " + name + ". Check within resource config location ...");
}
// If url == null, then url.openStream() will throw an exception and the fallback will be used within the catch below (TODO: Refactor ...)
@@ -91,7 +91,7 @@
return source;
} catch (Exception e) {
File resourceConfigDir = rtd.getConfigFile().getParentFile();
- log.warn("Fallback to resource config location: " + resourceConfigDir);
+ log.info("Fallback to resource config location: " + resourceConfigDir);
try {
File resourceFile = new File(resourceConfigDir.getAbsolutePath() + "/" + getPathPrefix() + path.replace('/', File.separatorChar));
InputStream in = new java.io.FileInputStream(resourceFile);
More information about the Yanel-commits
mailing list