Update aspect to exclude info fetches
This commit is contained in:
@@ -23,12 +23,17 @@ public class CipherStreamLoggingAspect{
|
||||
//Intentionally blank
|
||||
}
|
||||
|
||||
@Pointcut("@annotation(org.springframework.web.bind.annotation.PostMapping)")
|
||||
public void postFunction(){
|
||||
//Intentionally blank
|
||||
}
|
||||
|
||||
@Pointcut("execution(* com.mattrixwv.cipherstream.controller..*(..))")
|
||||
public void cipherMethod(){
|
||||
//Intentionally blank
|
||||
}
|
||||
|
||||
@AfterReturning(pointcut = "cipherMethod() && mappedFunction()", returning = "returnedJson")
|
||||
@AfterReturning(pointcut = "cipherMethod() && postFunction()", returning = "returnedJson")
|
||||
public void getCipherInfo(ObjectNode returnedJson){
|
||||
//Print a log
|
||||
log.info("CipherStream log {}", returnedJson);
|
||||
|
||||
Reference in New Issue
Block a user