Skip to content

Commit

Permalink
Fix logging image origin for loadThumbnail API
Browse files Browse the repository at this point in the history
Reviewed By: steelrooter

Differential Revision: D52075331

fbshipit-source-id: fb43c915a6325b5cad948b69b1203929cf007055
  • Loading branch information
Artem Kholodnyi authored and facebook-github-bot committed Dec 14, 2023
1 parent a4ac78a commit b7699b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public void produceResults(
protected void onSuccess(@Nullable CloseableReference<CloseableImage> result) {
super.onSuccess(result);
listener.onUltimateProducerReached(context, PRODUCER_NAME, result != null);
context.putOriginExtra("local");
context.putOriginExtra("local", "thumbnail_bitmap");
}

@Override
protected void onFailure(Exception e) {
super.onFailure(e);
listener.onUltimateProducerReached(context, PRODUCER_NAME, false);
context.putOriginExtra("local");
context.putOriginExtra("local", "thumbnail_bitmap");
}

@Override
Expand Down

0 comments on commit b7699b0

Please sign in to comment.