mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Logger: Also use the utility method for non-solitary exception arguments
This commit is contained in:
parent
7419c9e87c
commit
7696172249
@ -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
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user