From 8703fe4032f91efa8649f0ad3f6436a2620b42dd Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Nov 2018 08:17:33 -0500 Subject: [PATCH] Accept data structure in Logger::devLog --- src/Core/Logger.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/Logger.php b/src/Core/Logger.php index c9253a83e9..f9cb8cde01 100644 --- a/src/Core/Logger.php +++ b/src/Core/Logger.php @@ -115,6 +115,10 @@ class Logger extends BaseObject $processId = $a->process_id; } + if (!is_string($msg)) { + $msg = var_export($msg, true); + } + $callers = debug_backtrace(); $logline = sprintf("%s@\t%s:\t%s:\t%s\t%s\t%s\n", DateTimeFormat::utcNow(), -- 2.39.5