[Opensrf-commits] r1100 - trunk/src/java/org/opensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 5 16:35:16 EDT 2007
Author: erickson
Date: 2007-10-05 16:24:09 -0400 (Fri, 05 Oct 2007)
New Revision: 1100
Modified:
trunk/src/java/org/opensrf/Sys.java
Log:
provide a warning-level default logger if none is defined
Modified: trunk/src/java/org/opensrf/Sys.java
===================================================================
--- trunk/src/java/org/opensrf/Sys.java 2007-10-01 02:47:44 UTC (rev 1099)
+++ trunk/src/java/org/opensrf/Sys.java 2007-10-05 20:24:09 UTC (rev 1100)
@@ -19,6 +19,9 @@
public static void bootstrapClient(String configFile, String configContext)
throws ConfigException, SessionException {
+ if(Logger.instance() == null) /* provide a sane default logger */
+ Logger.init(Logger.WARN, new Logger());
+
/** see if the current thread already has a connection */
XMPPSession existing = XMPPSession.getThreadSession();
if(existing != null && existing.connected())
More information about the opensrf-commits
mailing list