From 891c0073ba662cbdd5dc12e08c591b2c24d8d509 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Tue, 29 Sep 2020 16:38:20 +0200 Subject: [PATCH] Use a new error log for each day --- api/ApiKernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ApiKernel.php b/api/ApiKernel.php index 1b2e8a9f..97d86a96 100644 --- a/api/ApiKernel.php +++ b/api/ApiKernel.php @@ -74,7 +74,7 @@ public function __construct($environment) error_reporting($debug ? E_ALL : E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR); ini_set('display_errors', $debug ? '1' : '0'); - ini_set('error_log', $this->getLogDir().\DIRECTORY_SEPARATOR.'error.log'); + ini_set('error_log', $this->getLogDir().\DIRECTORY_SEPARATOR.'error-'.date('Y-m-d').'.log'); parent::__construct($environment, $debug);