fix(php8): RemoteCP-Log-Rauschen reduzieren und errors.log rotieren
Unter PHP 8 sind viele fruehere Notices (Undefined array key, Attempt to read property ...) Warnings. Der RemoteCP-Errorhandler ignoriert diese ohne Debug-Modus wie bisher unter PHP 7; im Test wuchs errors.log sonst um rund 500 KB in 15 Minuten. Zusaetzlich rotiere ich remotecp/cache/*.log per logrotate (10 MB, 5 Dateien).
This commit is contained in:
1 parent
1ecb6c93b3
commit
9f8f0f00d6
2 files changed
+22
-5
No files matched your search
@@ -42,6 +42,19 @@
|
||||
copytruncate
|
||||
}
|
||||
|
||||
# RemoteCP-Logs (liegen im persistenten Volume)
|
||||
/var/www/html/remotecp/cache/*.log
|
||||
{
|
||||
su www-data www-data
|
||||
size 10M
|
||||
rotate 5
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
}
|
||||
|
||||
# AdminServ-Logs (liegen im persistenten Volume)
|
||||
/var/www/html/logs/*.log
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user