do not log DEBUG by default

This commit is contained in:
Uwe Steinmann 2018-03-22 15:13:09 +01:00
parent 75a6eafef4
commit 0e64f8a7fc

View File

@ -15,9 +15,10 @@ if($settings->_logFileEnable) {
$logname = $settings->_contentDir."log/webdav-".$logname.".log";
if(!file_exists($settings->_contentDir.'log'))
@mkdir($settings->_contentDir.'log');
if(file_exists($settings->_contentDir.'log') && is_dir($settings->_contentDir.'log'))
if(file_exists($settings->_contentDir.'log') && is_dir($settings->_contentDir.'log')) {
$log = Log::factory('file', $logname);
else
$log->setMask(Log::MAX(PEAR_LOG_INFO));
} else
$log = null;
} else {
$log = null;