Skip to content

Commit

Permalink
Bump truncation limit and output details about truncation when it hap…
Browse files Browse the repository at this point in the history
…pens
  • Loading branch information
Seldaek committed Jun 17, 2016
1 parent 26a813a commit 0d1465b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/Predis/Connection/ConnectionWrapper.php
Expand Up @@ -191,8 +191,8 @@ private function commandToString(CommandInterface $command)
*/
private function toStringArgumentReducer($accumulator, $argument)
{
if (strlen($argument) > 256) {
$argument = substr($argument, 0, 256) . '[...]';
if (strlen($argument) > 10240) {
$argument = substr($argument, 0, 10240) . ' (truncated, complete string is '.strlen($argument).' bytes)';
}

$accumulator .= " $argument";
Expand Down

0 comments on commit 0d1465b

Please sign in to comment.