From e2f5b9d1e0c056386e1c1b57cbdb0b80eb6e84c5 Mon Sep 17 00:00:00 2001 From: Osahenrumwen Aigbogun Date: Sat, 26 Oct 2024 13:52:02 +0100 Subject: [PATCH] Improved logging --- src/Core/Exception.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Core/Exception.php b/src/Core/Exception.php index f804410..50d2dd2 100644 --- a/src/Core/Exception.php +++ b/src/Core/Exception.php @@ -34,9 +34,10 @@ public static function always_log() : void self::new()->log_always(); } - public static function log(string $message, $exception = null) : void + public static function log(mixed $message, $exception = null) : void { - self::throw_exception($message, "ManualLog", kill: false, exception: $exception, throw_500: false); + self::always_log(); + self::throw_exception(var_export($message, true), "ManualLog", kill: false, exception: $exception, throw_500: false); } /**