Skip to content

Commit

Permalink
Fix logging image origin for local fetch producer
Browse files Browse the repository at this point in the history
Reviewed By: steelrooter

Differential Revision: D52075427

fbshipit-source-id: c77e2a1321b4c75562bd1dcd21cc599cd0a9c2e7
Artem Kholodnyi authored and facebook-github-bot committed Dec 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b7699b0 commit b7c5e97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -48,12 +48,12 @@ consumer, listener, producerContext, getProducerName()) {
EncodedImage encodedImage = LocalFetchProducer.this.getEncodedImage(imageRequest);
if (encodedImage == null) {
listener.onUltimateProducerReached(producerContext, getProducerName(), false);
producerContext.putOriginExtra("local");
producerContext.putOriginExtra("local", "fetch");
return null;
}
encodedImage.parseMetaData();
listener.onUltimateProducerReached(producerContext, getProducerName(), true);
producerContext.putOriginExtra("local");
producerContext.putOriginExtra("local", "fetch");
producerContext.putExtra(HasExtraData.KEY_COLOR_SPACE, encodedImage.getColorSpace());
return encodedImage;
}

0 comments on commit b7c5e97

Please sign in to comment.