Getting to the bottom of the logging issue
This commit is contained in:
parent
dae10c1977
commit
d3f61ab79e
|
@ -96,15 +96,17 @@ class Builder
|
||||||
|
|
||||||
if(is_array($message))
|
if(is_array($message))
|
||||||
{
|
{
|
||||||
$cb = $this->logCallback;
|
|
||||||
|
foreach ($message as $item)
|
||||||
$message = array_map(function($item) use ($cb, $prefix)
|
|
||||||
{
|
{
|
||||||
if(is_callable($cb))
|
if(is_callable($this->logCallback))
|
||||||
{
|
{
|
||||||
$cb($prefix . $item);
|
$this->logCallback($prefix . $item);
|
||||||
}
|
}
|
||||||
}, $message);
|
|
||||||
|
$this->log .= $prefix . $item . PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue