mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Do not create STDIN/STDOUT streams
This commit is contained in:
parent
16124989dd
commit
add8c4094b
@ -194,7 +194,7 @@ final class Logger
|
||||
$writer = new $writerClass($target);
|
||||
$writer->addFilter(new Zend_Log_Filter_Priority($priority));
|
||||
// Make sure the permissions for log target file are correct
|
||||
if ($type === 'Stream' && !file_exists($target)) {
|
||||
if ($type === 'Stream' && substr($target, 0, 6) !== 'php://' && !file_exists($target)) {
|
||||
touch($target);
|
||||
chmod($target, 0664);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user