From: erickson Date: Wed, 5 Dec 2007 14:38:16 +0000 (+0000) Subject: returning if config is not defined since next line of code tries to use config X-Git-Tag: osrf_rel_2_0_1~812 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d3e52019fb81a1cf03266ab892e9a8d0a2e71f3a;p=OpenSRF.git returning if config is not defined since next line of code tries to use config git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1155 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perlmods/OpenSRF/Utils/Logger.pm b/src/perlmods/OpenSRF/Utils/Logger.pm index f19890f..e911224 100644 --- a/src/perlmods/OpenSRF/Utils/Logger.pm +++ b/src/perlmods/OpenSRF/Utils/Logger.pm @@ -64,6 +64,7 @@ sub set_config { if( !defined($config) ) { $loglevel = INFO(); warn "*** Logger found no config. Using STDERR ***\n"; + return; } $loglevel = $config->bootstrap->loglevel;