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; - } } /**