|
|
@@ -702,6 +702,8 @@ class ProductDataService(BaseDataService):
|
|
|
if os.path.exists(os.path.join(IMAGE_PATH, product.image)):
|
|
|
os.remove(os.path.join(IMAGE_PATH, product.image))
|
|
|
try:
|
|
|
+ logger.info(f"Processing image: {image[:40]}... for product {product_id}")
|
|
|
+ logger.info(f"updates: {updates}, params: {params}")
|
|
|
extension = re.search(r'data:image/(.*%s);base64,', image)
|
|
|
if not extension:
|
|
|
raise ValueError("Invalid image format")
|