cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r561403 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java
Date Tue, 31 Jul 2007 17:21:36 GMT
Author: dkulp
Date: Tue Jul 31 10:21:35 2007
New Revision: 561403

URL: http://svn.apache.org/viewvc?view=rev&rev=561403
Log:
If using the defaul cfg file, log at FINE instead of INFO

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java?view=diff&rev=561403&r1=561402&r2=561403
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusApplicationContext.java
Tue Jul 31 10:21:35 2007
@@ -109,17 +109,23 @@
             }  
         }
         
+        boolean usingDefault = false;
         if (null == cfgFile) {
             cfgFile = System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_NAME);
         }        
         if (null == cfgFile) {
             cfgFile = Configurer.DEFAULT_USER_CFG_FILE;
+            usingDefault = true;
         }
         ClassPathResource cpr = new ClassPathResource(cfgFile);
         if (cpr.exists()) {
             resources.add(cpr);
         } else {
-            LogUtils.log(LOG, Level.INFO, "USER_CFG_FILE_NOT_FOUND_MSG", cfgFile);
+            if (!usingDefault) {
+                LogUtils.log(LOG, Level.INFO, "USER_CFG_FILE_NOT_FOUND_MSG", cfgFile);
+            } else {
+                LogUtils.log(LOG, Level.FINE, "USER_CFG_FILE_NOT_FOUND_MSG", cfgFile);
+            }
         }
         
         if (null != cfgFileURL) {



Mime
View raw message