really splitting log
[mir.git] / source / mir / misc / MirConfig.java
index c8b0de7..4adcd34 100755 (executable)
@@ -59,7 +59,7 @@ public class MirConfig extends Configuration {
   public static void setServletName(String servletName) {
     configHash.put("ServletName",servletName);
   }
-  
+
   /**
    * Returns the property asked for by pulling it out a HashMap
    * @param a String containing the property name (key)
@@ -79,7 +79,7 @@ public class MirConfig extends Configuration {
     return (String)configHash.get("Home") +
            (String)configHash.get(propName);
   }
-  
+
   public static void addBroker(String driver, String URL) throws StorageObjectException {
 
     String username,passwd,min,max,log,reset,dbname,dblogfile;
@@ -90,10 +90,10 @@ public class MirConfig extends Configuration {
       min=getProp("Database.poolMin");
       max=getProp("Database.poolMax");
       dbname=getProp("Database.Name");
-      log=getProp("Home") + configHash.get("Database.PoolLog");
+      log=getProp("Home")+ configHash.get("Database.PoolLog");
       reset=getProp("Database.poolResetTime");
       dblogfile=getPropWithHome("Database.Logfile");
-      
+
       System.err.println("-- making Broker for -"
                           +driver+" - " +URL
                           + " log " + log + " user "
@@ -110,10 +110,10 @@ public class MirConfig extends Configuration {
       meta.setMinimumSize(Integer.parseInt(min));
       meta.setCacheEnabled(true);
       //meta.setDebugging(true);
-      meta.setLogFile(dblogfile);
-      
+      meta.setLogFile(dblogfile+".pool");
+
       JDBCPool pool = SQLManager.getInstance().createPool(meta);
-          
+
       if (pool!=null){
         instances++;
         brokerHash.put("Pool.broker",pool);