From: Hypolite Petovan Date: Sat, 10 Nov 2018 13:17:33 +0000 (-0500) Subject: Accept data structure in Logger::devLog X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8703fe4032f91efa8649f0ad3f6436a2620b42dd;p=friendica.git Accept data structure in Logger::devLog --- 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(),