TASK: Provide more helpful logging

This commit is contained in:
Daniel Siepmann 2017-08-04 13:39:48 +02:00
parent 56ce88b005
commit ac78464c03
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -61,7 +61,10 @@ class DocumentFactory implements Singleton
$identifier = $document['search_identifier']; $identifier = $document['search_identifier'];
unset($document['search_identifier']); unset($document['search_identifier']);
$this->logger->debug('Convert document to document', [$identifier, $document]); $this->logger->debug(
sprintf('Convert %s %u to document.', $documentType, $identifier),
[$identifier, $document]
);
return new \Elastica\Document($identifier, $document); return new \Elastica\Document($identifier, $document);
} }