set app name before creating logger

This commit is contained in:
Max Nuding 2025-05-06 21:44:57 +02:00
parent 62820fd272
commit 77ae2cc627
Signed by: phlaym
SSH Key Fingerprint: SHA256:mionmF+5trOUI1AxqzAU1ZK3tv6IiDcdKGXcMWwa1nQ

View File

@ -80,6 +80,9 @@ class APnutI
?string $log_path = null,
$log_level = null
) {
if (!empty($app_name)) {
$this->app_name = $app_name;
}
if (empty($log_level)) {
$log_level = Logger::INFO;
} elseif (is_string($log_level)) {
@ -112,9 +115,6 @@ class APnutI
if (!empty($redirect_uri)) {
$this->redirect_uri = $redirect_uri;
}
if (!empty($app_name)) {
$this->app_name = $app_name;
}
}
/**