From 359afdcbe0f1d392cd15e54f7c77727f890b28d0 Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 4 Dec 2024 00:26:03 -0500 Subject: [PATCH] Bug fix, bumped to version 2.0.4 --- CHANGELOG.md | 5 +++++ project.json | 2 +- src/LogLib/Handlers/ConsoleLogging.php | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9b4ff..20eb682 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ 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). +## [2.0.4] - 2024-12-04 + +This update introduces a minor bug fix + + ## [2.0.3] - 2024-11-05 This update introduces a minor bug fix diff --git a/project.json b/project.json index 89f2adc..fdca6f7 100644 --- a/project.json +++ b/project.json @@ -20,7 +20,7 @@ "package": "net.nosial.loglib", "company": "Nosial", "copyright": "Copyright (c) 2022-2023 Nosial", - "version": "2.0.3", + "version": "2.0.4", "uuid": "de1deca6-7b65-11ed-a8b0-a172264634d8" }, "build": { diff --git a/src/LogLib/Handlers/ConsoleLogging.php b/src/LogLib/Handlers/ConsoleLogging.php index 24d67f5..97b683d 100644 --- a/src/LogLib/Handlers/ConsoleLogging.php +++ b/src/LogLib/Handlers/ConsoleLogging.php @@ -208,7 +208,10 @@ class ConsoleLogging implements LogHandlerInterface print('Stack Trace:' . PHP_EOL); foreach($trace as $item) { - print( ' - ' . self::color($item['file'], ConsoleColors::RED) . ':' . $item['line'] . PHP_EOL); + if(isset($item['file']) && isset($item['line'])) + { + print( ' - ' . self::color($item['file'], ConsoleColors::RED) . ':' . $item['line'] . PHP_EOL); + } } }