From 8d0b0747a13000d6cb3f0e78d8c89cffa72f1ca8 Mon Sep 17 00:00:00 2001 From: Matthew Ellison Date: Mon, 22 Apr 2024 12:49:41 -0400 Subject: [PATCH] Update aspect to exclude info fetches --- pom.xml | 2 +- .../cipherstream/aspect/CipherStreamLoggingAspect.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index bffda29..98b30a0 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ jar 1.0.0-SNAPSHOT CipherStream API - https://cipherstream.mattrixwv.com/api + https://api.cipherstream.mattrixwv.com diff --git a/src/main/java/com/mattrixwv/cipherstream/aspect/CipherStreamLoggingAspect.java b/src/main/java/com/mattrixwv/cipherstream/aspect/CipherStreamLoggingAspect.java index a1958af..9d7c74f 100644 --- a/src/main/java/com/mattrixwv/cipherstream/aspect/CipherStreamLoggingAspect.java +++ b/src/main/java/com/mattrixwv/cipherstream/aspect/CipherStreamLoggingAspect.java @@ -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);