1
0
Fork 0

Base64 encode debug output to avoid dumping binary and push it to the end of the line

pull/5653/merge
Jordi Boggiano 2017-05-23 09:31:29 +02:00
parent 221d80d1e1
commit 1a488bce01
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class RemoteFilesystem
$e->setHeaders($http_response_header);
$e->setStatusCode($this->findStatusCode($http_response_header));
$e->setResponse($result);
$this->io->writeError('Content-Length mismatch, received "'.$result.'" ('.Platform::strlen($result).' out of '.$contentLength.' bytes)', true, IOInterface::DEBUG);
$this->io->writeError('Content-Length mismatch, received '.Platform::strlen($result).' out of '.$contentLength.' bytes: (' . base64_encode($result).')', true, IOInterface::DEBUG);
throw $e;
}