Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-03-17 04:52:23 +0400
committermattab <matthieu.aubry@gmail.com>2014-03-17 04:52:23 +0400
commit016b99ca3c68846f3740d39f5cf7c1e52f011aff (patch)
tree93202726bc8837e2416e79aeb54b3197ac5124d2 /core/Log.php
parent1fd459bbaf1289547e2cba5b54d3e3ecc12eb285 (diff)
Allow to Log::debug Log::info etc. any data structures using var_export
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Log.php b/core/Log.php
index b6f8230735..a15148e92c 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -537,6 +537,9 @@ class Log extends Singleton
private static function logMessage($level, $message, $sprintfParams)
{
+ if(!is_string($message)) {
+ $message = var_export($message, true);
+ }
self::getInstance()->doLog($level, $message, $sprintfParams);
}