vgritsenko    2003/12/22 06:03:38

  Modified:    java/src/org/apache/xindice/server XindiceServlet.java
  Log:
  Add debug()
  
  Revision  Changes    Path
  1.26      +8 -7      
xml-xindice/java/src/org/apache/xindice/server/XindiceServlet.java
  
  Index: XindiceServlet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xindice/java/src/org/apache/xindice/server/XindiceServlet.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- XindiceServlet.java       14 Dec 2003 18:20:58 -0000      1.25
  +++ XindiceServlet.java       22 Dec 2003 14:03:38 -0000      1.26
  @@ -146,7 +146,6 @@
           //
           try {
               Configuration rootCollectionConfiguration = 
configuration.getChild("root-collection");
  -
               if (rootCollectionConfiguration == null) {
                   throw new ConfigurationException("The database configuration 
is missing the <root-collection> element");
               } else {
  @@ -173,14 +172,16 @@
   
                       // Let's see if the property was specified.
                       String home = 
System.getProperty(Xindice.PROP_XINDICE_DB_HOME);
  +                    if (log.isDebugEnabled()) {
  +                        log.debug(Xindice.PROP_XINDICE_DB_HOME + " is set to 
" + home);
  +                    }
  +
                       if (home != null) {
                           dbRoot = new File(home + File.separator + 
dbRoot).getCanonicalPath();
                       } else if (realPath != null) {
                           dbRoot = new File(realPath + File.separator + 
dbRoot).getCanonicalPath();
  -                        log.warn(
  -                                "The database root directory has been set to 
"
  -                                + dbRoot
  -                                + ". Keep in mind that if a war upgrade will 
take place the database will be lost.");
  +                        log.warn("The database root directory has been set 
to " + dbRoot +
  +                                 ". Keep in mind that if a war upgrade will 
take place the database will be lost.");
                       } else {
                           throw new ConfigurationException(
                                   "The database configuration points to a 
relative path, "
  
  
  

Reply via email to