Skip to content

Commit

Permalink
Use a new error log for each day
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Sep 29, 2020
1 parent a560236 commit 891c007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ApiKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 891c007

Please sign in to comment.