| Line 20... |
Line 20... |
| 20 |
emailId = this.request.getParameter("emailId");
|
20 |
emailId = this.request.getParameter("emailId");
|
| 21 |
itemId = Long.parseLong(this.request.getParameter("itemId"));
|
21 |
itemId = Long.parseLong(this.request.getParameter("itemId"));
|
| 22 |
|
22 |
|
| 23 |
CatalogClient catalogClientService;
|
23 |
CatalogClient catalogClientService;
|
| 24 |
catalogClientService = new CatalogClient();
|
24 |
catalogClientService = new CatalogClient();
|
| 25 |
in.shop2020.model.v1.catalog.InventoryService.Client client = catalogClientService.getClient();
|
25 |
in.shop2020.model.v1.catalog.CatalogService.Client client = catalogClientService.getClient();
|
| 26 |
client.addProductNotification(itemId, emailId);
|
26 |
client.addProductNotification(itemId, emailId);
|
| 27 |
} catch (Exception e) {
|
27 |
} catch (Exception e) {
|
| 28 |
log.error("Exception while adding product notification for item: " + itemId + " and email: " + emailId, e);
|
28 |
log.error("Exception while adding product notification for item: " + itemId + " and email: " + emailId, e);
|
| 29 |
}
|
29 |
}
|
| 30 |
log.debug("Got product notification for product: " + itemId + " from user: " + emailId );
|
30 |
log.debug("Got product notification for product: " + itemId + " from user: " + emailId );
|