mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #645 from drzax/log-writer
BUG Attempt to create log path before writing file
This commit is contained in:
commit
373c25d56d
@ -58,6 +58,7 @@ class SS_LogFileWriter extends Zend_Log_Writer_Abstract {
|
||||
$this->setFormatter($formatter);
|
||||
}
|
||||
$message = $this->_formatter->format($event);
|
||||
if(!file_exists(dirname($this->path))) mkdir(dirname($this->path), 0755, true);
|
||||
error_log($message, $this->messageType, $this->path, $this->extraHeaders);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user