returning if config is not defined since next line of code tries to use config
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 5 Dec 2007 14:38:16 +0000 (14:38 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 5 Dec 2007 14:38:16 +0000 (14:38 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1155 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/Utils/Logger.pm

index f19890f..e911224 100644 (file)
@@ -64,6 +64,7 @@ sub set_config {
        if( !defined($config) ) {
                $loglevel = INFO();
                warn "*** Logger found no config.  Using STDERR ***\n";
        if( !defined($config) ) {
                $loglevel = INFO();
                warn "*** Logger found no config.  Using STDERR ***\n";
+               return;
        }
 
        $loglevel =  $config->bootstrap->loglevel; 
        }
 
        $loglevel =  $config->bootstrap->loglevel;