Connector/Logger/ClassNameFormatter.php
public function logCommandFailed($command, Exception $exception)
    {
        $message = $this->getFailedMessage($command);
        $payload = $this->getPayload($command);

        $payload = array_merge($payload, ['exception' => $exception]);

        $this->logger->log(
            $this->commandFailedLevel,
            $message,
            $payload
        );
    }
public function logCommandFailed($command, Exception $exception)
    {
        $message = $this->getFailedMessage($command);
        $payload = $this->getPayload($command);

        $payload = array_merge($payload, ['exception' => $exception]);

        $this->logger->log(
            $this->commandFailedLevel,
            $message,
            $payload
        );
    }
{@inheritdoc}