diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-03-17 04:52:23 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-03-17 04:52:23 +0400 |
commit | 016b99ca3c68846f3740d39f5cf7c1e52f011aff (patch) | |
tree | 93202726bc8837e2416e79aeb54b3197ac5124d2 /core/Log.php | |
parent | 1fd459bbaf1289547e2cba5b54d3e3ecc12eb285 (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.php | 3 |
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); } |