From: erickson Date: Fri, 5 Oct 2007 20:24:09 +0000 (+0000) Subject: provide a warning-level default logger if none is defined X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a014551abb49931c5ecf0b80622d2926030fecd;p=opensrf%2Fbjwebb.git provide a warning-level default logger if none is defined git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1100 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/java/org/opensrf/Sys.java b/src/java/org/opensrf/Sys.java index 1e52bb3..fd2fcc6 100644 --- a/src/java/org/opensrf/Sys.java +++ b/src/java/org/opensrf/Sys.java @@ -19,6 +19,9 @@ public class Sys { 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())