use of com.sequenceiq.cloudbreak.cloud.event.CloudPlatformRequest in project cloudbreak by hortonworks.
the class LogContextAspects method buildLogContextForCloudPlatformEventHandler.
@Before("com.sequenceiq.cloudbreak.logger.LogContextAspects.interceptCloudPlatformEventHandlersAcceptMethod()")
public void buildLogContextForCloudPlatformEventHandler(JoinPoint joinPoint) {
Event<CloudPlatformRequest> event = (Event<CloudPlatformRequest>) joinPoint.getArgs()[0];
CloudPlatformRequest cloudPlatformRequest = event.getData();
CloudContext cloudContext = cloudPlatformRequest.getCloudContext();
buildMdcContext(cloudContext, event);
LOGGER.info("A CloudPlatformEventHandler's 'accept' method has been intercepted: {}, MDC logger context is built.", joinPoint.toShortString());
}
Aggregations