Pushing fix for tracking app and tab click activities. 19/116619/1
authorMuni Mohan Kunchi <munmohan@att.com>
Tue, 5 Jan 2021 22:31:47 +0000 (17:31 -0500)
committerMuni Mohan Kunchi <munmohan@att.com>
Tue, 5 Jan 2021 22:32:26 +0000 (17:32 -0500)
Issue-ID: PORTAL-1054
Signed-off-by: Muni Mohan Kunchi <munmohan@att.com>
Change-Id: If17239d9d46334e05db37637f124d21e511e83cd

ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/AuditLogController.java

index e89f992..512fbea 100644 (file)
@@ -71,8 +71,9 @@ import org.onap.portalsdk.core.util.SystemProperties;
 @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 @@ public class AuditLogController extends EPRestrictedBaseController {
                                        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);