add setting for customzing webserver error-log level, fixes #650

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-12 17:38:46 +01:00
parent d0fb77f3e9
commit 73c05fb231
10 changed files with 44 additions and 4 deletions

View File

@@ -187,3 +187,12 @@ if (\Froxlor\Froxlor::isDatabaseVersion('201812180')) {
\Froxlor\Froxlor::updateToDbVersion('201812190');
}
if (\Froxlor\Froxlor::isDatabaseVersion('201812190')) {
showUpdateStep("Adding new webserver error-log-level setting");
Settings::AddNew('system.errorlog_level', (\Froxlor\Settings::Get('system.webserver') == 'nginx' ? 'error' : 'warn'));
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('201901120');
}