Fix: log must use the mask defined into setup
This commit is contained in:
parent
494e9dbe18
commit
78a0c7ace2
@ -114,6 +114,8 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface
|
|||||||
*/
|
*/
|
||||||
public function export($content, $suffixinfilename='')
|
public function export($content, $suffixinfilename='')
|
||||||
{
|
{
|
||||||
|
global $conf;
|
||||||
|
|
||||||
$logfile = $this->getFilename($suffixinfilename);
|
$logfile = $this->getFilename($suffixinfilename);
|
||||||
|
|
||||||
if (defined("SYSLOG_FILE_NO_ERROR")) $filefd = @fopen($logfile, 'a+');
|
if (defined("SYSLOG_FILE_NO_ERROR")) $filefd = @fopen($logfile, 'a+');
|
||||||
@ -145,6 +147,7 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface
|
|||||||
|
|
||||||
fwrite($filefd, $message."\n");
|
fwrite($filefd, $message."\n");
|
||||||
fclose($filefd);
|
fclose($filefd);
|
||||||
|
@chmod($logfile, octdec($conf->global->MAIN_UMASK));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user