@@ -132,6 +132,16 @@ private function isInStock(Product $product, int $stockId): bool
132
132
$ stockId
133
133
);
134
134
} catch (\Exception $ e ) {
135
+ $ this ->fbeHelper ->logExceptionImmediatelytoMeta (
136
+ $ e ,
137
+ [
138
+ 'store_id ' => $ this ->product ->getStoreId (),
139
+ 'event ' => 'catalog_sync ' ,
140
+ 'event_type ' => 'multi_source_inventory_sync_get_stock_status_error ' ,
141
+ 'product_id ' => $ this ->product ->getSku (),
142
+ 'stock_id ' => $ stockId
143
+ ]
144
+ );
135
145
return false ;
136
146
}
137
147
}
@@ -151,6 +161,16 @@ private function getStockQty(Product $product, int $stockId)
151
161
$ stockId
152
162
);
153
163
} catch (\Exception $ e ) {
164
+ $ this ->fbeHelper ->logExceptionImmediatelytoMeta (
165
+ $ e ,
166
+ [
167
+ 'store_id ' => $ this ->product ->getStoreId (),
168
+ 'event ' => 'catalog_sync ' ,
169
+ 'event_type ' => 'multi_source_inventory_sync_get_stock_qty_error ' ,
170
+ 'product_id ' => $ this ->product ->getSku (),
171
+ 'stock_id ' => $ stockId
172
+ ]
173
+ );
154
174
return 0 ;
155
175
}
156
176
}
@@ -173,7 +193,8 @@ public function isStockManagedForProduct(): bool
173
193
[
174
194
'store_id ' => $ this ->product ->getStoreId (),
175
195
'event ' => 'catalog_sync ' ,
176
- 'event_type ' => 'multi_source_inventory_sync_error '
196
+ 'event_type ' => 'multi_source_inventory_sync_error ' ,
197
+ 'product_id ' => $ this ->product ->getSku ()
177
198
]
178
199
);
179
200
try {
0 commit comments