We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1744fec8 authored by mattl's avatar mattl

Array to string conversion in queuemanager logger

parent 4015a58d
......@@ -143,14 +143,16 @@ abstract class QueueManager extends IoManager
return "$class $object->id";
}
return $class;
}
if (is_string($object)) {
} elseif (is_string($object)) {
$len = strlen($object);
$fragment = mb_substr($object, 0, 32);
if (mb_strlen($object) > 32) {
$fragment .= '...';
}
return "string '$fragment' ($len bytes)";
} elseif (is_array($object)) {
return 'array with ' . count($object) .
' elements (keys:[' . implode(',', array_keys($object)) . '])';
}
return strval($object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment