Update aspect to exclude info fetches
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -8,7 +8,7 @@
|
|||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<name>CipherStream API</name>
|
<name>CipherStream API</name>
|
||||||
<url>https://cipherstream.mattrixwv.com/api</url>
|
<url>https://api.cipherstream.mattrixwv.com</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!--Compile-->
|
<!--Compile-->
|
||||||
|
|||||||
@@ -23,12 +23,17 @@ public class CipherStreamLoggingAspect{
|
|||||||
//Intentionally blank
|
//Intentionally blank
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Pointcut("@annotation(org.springframework.web.bind.annotation.PostMapping)")
|
||||||
|
public void postFunction(){
|
||||||
|
//Intentionally blank
|
||||||
|
}
|
||||||
|
|
||||||
@Pointcut("execution(* com.mattrixwv.cipherstream.controller..*(..))")
|
@Pointcut("execution(* com.mattrixwv.cipherstream.controller..*(..))")
|
||||||
public void cipherMethod(){
|
public void cipherMethod(){
|
||||||
//Intentionally blank
|
//Intentionally blank
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterReturning(pointcut = "cipherMethod() && mappedFunction()", returning = "returnedJson")
|
@AfterReturning(pointcut = "cipherMethod() && postFunction()", returning = "returnedJson")
|
||||||
public void getCipherInfo(ObjectNode returnedJson){
|
public void getCipherInfo(ObjectNode returnedJson){
|
||||||
//Print a log
|
//Print a log
|
||||||
log.info("CipherStream log {}", returnedJson);
|
log.info("CipherStream log {}", returnedJson);
|
||||||
|
|||||||
Reference in New Issue
Block a user