mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:50:11 +00:00
friendica-6379 Monolog - logfile permission denied
This commit is contained in:
parent
ea218438d2
commit
b56b56ccb6
3 changed files with 47 additions and 13 deletions
|
@ -22,6 +22,12 @@ class Settings extends BaseAdminModule
|
|||
$debugging = !empty($_POST['debugging']);
|
||||
$loglevel = defaults($_POST, 'loglevel', LogLevel::ERROR);
|
||||
|
||||
if (is_file($logfile) &&
|
||||
!is_writeable($logfile)) {
|
||||
notice(L10n::t('The logfile \'%s\' is not writable. No logging possible', $logfile));
|
||||
return;
|
||||
}
|
||||
|
||||
Config::set('system', 'logfile', $logfile);
|
||||
Config::set('system', 'debugging', $debugging);
|
||||
Config::set('system', 'loglevel', $loglevel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue