Array to string conversion in queuemanager logger
This commit is contained in:
parent
4015a58d1c
commit
1744fec89f
|
@ -143,14 +143,16 @@ abstract class QueueManager extends IoManager
|
||||||
return "$class $object->id";
|
return "$class $object->id";
|
||||||
}
|
}
|
||||||
return $class;
|
return $class;
|
||||||
}
|
} elseif (is_string($object)) {
|
||||||
if (is_string($object)) {
|
|
||||||
$len = strlen($object);
|
$len = strlen($object);
|
||||||
$fragment = mb_substr($object, 0, 32);
|
$fragment = mb_substr($object, 0, 32);
|
||||||
if (mb_strlen($object) > 32) {
|
if (mb_strlen($object) > 32) {
|
||||||
$fragment .= '...';
|
$fragment .= '...';
|
||||||
}
|
}
|
||||||
return "string '$fragment' ($len bytes)";
|
return "string '$fragment' ($len bytes)";
|
||||||
|
} elseif (is_array($object)) {
|
||||||
|
return 'array with ' . count($object) .
|
||||||
|
' elements (keys:[' . implode(',', array_keys($object)) . '])';
|
||||||
}
|
}
|
||||||
return strval($object);
|
return strval($object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user