- Fixed errorLogPath default value if none is provided
This commit is contained in:
1 parent
90a2f4d083
commit
4834404575
2 files changed
+7
-3
No files matched your search
+2
-2
@@ -30,7 +30,6 @@ class Kernel
|
||||
|
||||
public string $errorLogPath;
|
||||
|
||||
|
||||
public function __construct(
|
||||
public string $projectPath
|
||||
)
|
||||
@@ -99,11 +98,12 @@ class Kernel
|
||||
}
|
||||
|
||||
ini_set("log_errors", "1");
|
||||
ini_set("error_log", $this->errorLogPath);
|
||||
ini_set("error_log", $this->errorLogPath ?? getenv("LOGS_PATH") . DIRECTORY_SEPARATOR. date("Y-m").".log");
|
||||
ini_set('display_errors', getenv("DEBUG") ? 'on' : 'on');
|
||||
|
||||
error_reporting($this->errorReporting);
|
||||
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user