Removed try/catch clause from getLogger() method.
Increased version string to "pre3 2002/04/26".
This commit is contained in:
parent
b49b50449e
commit
653de0713c
1 changed files with 7 additions and 13 deletions
|
@ -24,7 +24,7 @@ import com.sleepycat.db.*;
|
||||||
|
|
||||||
public class Server implements IPathElement, Runnable {
|
public class Server implements IPathElement, Runnable {
|
||||||
|
|
||||||
public static final String version = "1.2pre2 2002/03/26";
|
public static final String version = "1.2pre3 2002/04/26";
|
||||||
public static final long starttime = System.currentTimeMillis();
|
public static final long starttime = System.currentTimeMillis();
|
||||||
|
|
||||||
public static boolean useTransactions = true;
|
public static boolean useTransactions = true;
|
||||||
|
@ -295,17 +295,11 @@ import com.sleepycat.db.*;
|
||||||
if (logDir == null || "console".equalsIgnoreCase (logDir)) {
|
if (logDir == null || "console".equalsIgnoreCase (logDir)) {
|
||||||
logger = new Logger (System.out);
|
logger = new Logger (System.out);
|
||||||
} else {
|
} else {
|
||||||
try {
|
|
||||||
File helper = new File (logDir);
|
File helper = new File (logDir);
|
||||||
if (hopHome != null && !helper.isAbsolute ())
|
if (hopHome != null && !helper.isAbsolute ())
|
||||||
helper = new File (hopHome, logDir);
|
helper = new File (hopHome, logDir);
|
||||||
logDir = helper.getAbsolutePath ();
|
logDir = helper.getAbsolutePath ();
|
||||||
logger = Logger.getLogger (logDir, "hop");
|
logger = Logger.getLogger (logDir, "hop");
|
||||||
} catch (IOException iox) {
|
|
||||||
System.err.println ("Could not create Logger for log/hop: "+iox);
|
|
||||||
// fallback to System.out
|
|
||||||
logger = new Logger (System.out);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return logger;
|
return logger;
|
||||||
|
|
Loading…
Add table
Reference in a new issue