mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Also fix SoapFault handling in LineFormatter, refs #1391
This commit is contained in:
@@ -180,8 +180,8 @@ class LineFormatter extends NormalizerFormatter
|
|||||||
$str .= ' faultactor: ' . $e->faultactor;
|
$str .= ' faultactor: ' . $e->faultactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($e->detail)) {
|
if (isset($e->detail) && (is_string($e->detail) || is_object($e->detail) || is_array($e->detail))) {
|
||||||
$str .= ' detail: ' . $e->detail;
|
$str .= ' detail: ' . (is_string($e->detail) ? $e->detail : reset($e->detail));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$str .= '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')';
|
$str .= '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . ')';
|
||||||
|
Reference in New Issue
Block a user