From e5ce8cdc01641839dc82b3d9602874017afa9676 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 25 Oct 2024 20:10:40 -0400 Subject: [PATCH] Set default log level to 'info' in Utilities. instead of using `null` due to deprecation error --- CHANGELOG.md | 8 ++++++++ src/LogLib/Classes/Utilities.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cb61a0..f5887fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.2] + +This update introduces some additional features & bug fixes + +### Fixed + - Set default log level to 'info' in Utilities. instead of using `null` due to deprecation error + + ## [1.1.1] - 2024-10-13 Update build system diff --git a/src/LogLib/Classes/Utilities.php b/src/LogLib/Classes/Utilities.php index 0599f4e..4733f8d 100644 --- a/src/LogLib/Classes/Utilities.php +++ b/src/LogLib/Classes/Utilities.php @@ -84,7 +84,7 @@ { $args = Parse::getArguments(); - switch(strtolower(($args['log'] ?? $args['log-level'] ?? (getenv('LOG_LEVEL') ?: null) ?? null))) + switch(strtolower(($args['log'] ?? $args['log-level'] ?? (getenv('LOG_LEVEL') ?: 'info') ?? 'info'))) { case LevelType::DEBUG: case 'debug':