Add Logs for import export (#20709)

This commit is contained in:
Mohit Yadav 2025-04-08 23:26:42 +05:30 committed by GitHub
parent a0543617b3
commit bc701ae993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -543,6 +543,7 @@ public abstract class EntityResource<T extends EntityInterface, K extends Entity
WebsocketNotificationHandler.sendCsvExportCompleteNotification(
jobId, securityContext, csvData);
} catch (Exception e) {
LOG.error("Encountered Exception while exporting.", e);
WebsocketNotificationHandler.sendCsvExportFailedNotification(
jobId, securityContext, e.getMessage());
}
@ -669,6 +670,7 @@ public abstract class EntityResource<T extends EntityInterface, K extends Entity
WebsocketNotificationHandler.sendCsvImportCompleteNotification(
jobId, securityContext, result);
} catch (Exception e) {
LOG.error("Encountered Exception while importing.", e);
WebsocketNotificationHandler.sendCsvImportFailedNotification(
jobId, securityContext, e.getMessage());
}