Update aspect to exclude info fetches

This commit is contained in:
Matthew Ellison
2024-04-22 12:49:41 -04:00
parent 71c50f0608
commit 8d0b0747a1
2 changed files with 7 additions and 2 deletions

View File

@@ -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);