Skip to content

Commit 2c03fd9

Browse files
committed
fix: add more info in logging message when PO update failed
1 parent 3db91e8 commit 2c03fd9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

robotoff/off.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,11 @@ def update_product(
527527
status = json.get("status_verbose")
528528

529529
if status != "fields saved":
530-
logger.warning("Unexpected status during product update: %s", status)
530+
logger.warning(
531+
"Unexpected status during product update: %s",
532+
status,
533+
extra={"response_json": json, "request_headers": r.request.headers},
534+
)
531535

532536

533537
def update_product_v3(

0 commit comments

Comments
 (0)