Logger: Also use the utility method for non-solitary exception arguments

This commit is contained in:
Johannes Meyer 2015-10-05 12:54:04 +02:00
parent 7419c9e87c
commit 7696172249

View File

@ -239,7 +239,9 @@ class Logger
array_shift($arguments), array_shift($arguments),
array_map( array_map(
function ($a) { function ($a) {
return is_string($a) ? $a : ($a instanceof Exception ? $a->getMessage() : json_encode($a)); return is_string($a) ? $a : ($a instanceof Exception
? IcingaException::describe($a)
: json_encode($a));
}, },
$arguments $arguments
) )