Fix some logging bugs
This commit is contained in:
parent
5a5927dce6
commit
5e2fa46650
|
@ -120,13 +120,13 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo
|
||||||
item_id = product.upc
|
item_id = product.upc
|
||||||
|
|
||||||
if not item_id:
|
if not item_id:
|
||||||
log.warning("item_id could not be determined for product %s: %s",
|
log.warning("product id %s has no upc: %s",
|
||||||
product.uuid, product)
|
product.id, product)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not item_id.isdigit():
|
if not item_id.isdigit():
|
||||||
log.debug("item_id '%s' is not numeric for product %s: %s",
|
log.debug("product has non-numeric upc %s: %s",
|
||||||
item_id, product.uuid, product)
|
item_id, product)
|
||||||
return
|
return
|
||||||
|
|
||||||
is_plu = False
|
is_plu = False
|
||||||
|
|
Loading…
Reference in a new issue