From 77ae2cc6273336383ca036a2a3b9e43e4b764c5e Mon Sep 17 00:00:00 2001 From: Max Nuding Date: Tue, 6 May 2025 21:44:57 +0200 Subject: [PATCH] set app name before creating logger --- src/APnutI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/APnutI.php b/src/APnutI.php index 28a905f..dcd1893 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -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; - } } /**