Pushing fix for tracking app and tab click activities.
Issue-ID: PORTAL-1054
Signed-off-by: Muni Mohan Kunchi <munmohan@att.com>
Change-Id: If17239d9d46334e05db37637f124d21e511e83cd
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AuditLogController.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AuditLogController.java
index e89f992..512fbea 100644
--- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AuditLogController.java
+++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AuditLogController.java
@@ -71,8 +71,9 @@
@RestController
@RequestMapping("/portalApi/auditLog")
public class AuditLogController extends EPRestrictedBaseController {
- private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(DashboardController.class);
+ private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(AuditLogController.class);
private static final DataValidator dataValidator = new DataValidator();
+
private AuditService auditService;
@Autowired
@@ -151,6 +152,7 @@
String requestId = UUID.randomUUID().toString();
MDC.put(Configuration.MDC_KEY_REQUEST_ID, requestId);
}
+ auditService.logActivity(auditLog, null);
String auditMessageInfo = EPLogUtil.formatAuditLogMessage(
"AuditLogController.auditLog", cdType, user.getOrgUserId(), affectedAppId, comment);