From 0d92d2a8384893fc5ba1173ddf46d46eb9f76ec4 Mon Sep 17 00:00:00 2001 From: Netkas Date: Thu, 6 Jul 2023 18:42:25 -0400 Subject: [PATCH] Fixed mistake in `\LogLib\Classes > Console > outException()` where the function attempts to print out a previous exception by calling `getPrevious()` as an array instead of a function call. --- CHANGELOG.md | 5 +++++ src/LogLib/Classes/Console.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b78831..d4a10ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed * Changed the Timestamp format to display micro time instead of a date format + * Timestamp Formats can now display in red or yellow to indicate performance impacts between log entries + +### Fixed + * Fixed mistake in `\LogLib\Classes > Console > outException()` where the function attempts to print out a previous + exception by calling `getPrevious()` as an array instead of a function call. ## [1.0.1] - 2023-02-10 diff --git a/src/LogLib/Classes/Console.php b/src/LogLib/Classes/Console.php index 053b446..0c2afb4 100644 --- a/src/LogLib/Classes/Console.php +++ b/src/LogLib/Classes/Console.php @@ -211,7 +211,7 @@ if($exception->getPrevious() !== null) { print('Previous Exception:' . PHP_EOL); - self::outException($exception['previous']); + self::outException($exception->getPrevious()); } } } \ No newline at end of file