Skip to content

Commit

Permalink
fix: LoggingAspect precedence to be last for accepting mutated args
Browse files Browse the repository at this point in the history
  • Loading branch information
Pankaj Agrawal committed Oct 21, 2021
1 parent f5f5f11 commit 3ff232f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclarePrecedence;
import org.aspectj.lang.annotation.Pointcut;
import software.amazon.lambda.powertools.logging.Logging;
import software.amazon.lambda.powertools.logging.LoggingUtils;
Expand All @@ -57,6 +58,7 @@
import static software.amazon.lambda.powertools.logging.LoggingUtils.objectMapper;

@Aspect
@DeclarePrecedence("*, LambdaLoggingAspect")
public final class LambdaLoggingAspect {
private static final Logger LOG = LogManager.getLogger(LambdaLoggingAspect.class);
private static final Random SAMPLER = new Random();
Expand Down

0 comments on commit 3ff232f

Please sign in to comment.