returning if config is not defined since next line of code tries to use config
[OpenSRF.git] / 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";
+               return;
        }
 
        $loglevel =  $config->bootstrap->loglevel;