]> git.mxchange.org Git - friendica.git/commitdiff
Accept data structure in Logger::devLog
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 10 Nov 2018 13:17:33 +0000 (08:17 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 10 Nov 2018 13:17:33 +0000 (08:17 -0500)
src/Core/Logger.php

index c9253a83e913ea92f03e5e06c1b3f8dea6eddc04..f9cb8cde01f254d6e5ee0d540f7cb5ac0892cd9b 100644 (file)
@@ -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(),