diff --git a/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/LogErrorContextMissingStrategy.java b/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/LogErrorContextMissingStrategy.java index 38746ea3..1874b4b1 100644 --- a/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/LogErrorContextMissingStrategy.java +++ b/aws-xray-recorder-sdk-core/src/main/java/com/amazonaws/xray/strategy/LogErrorContextMissingStrategy.java @@ -25,7 +25,7 @@ public class LogErrorContextMissingStrategy implements ContextMissingStrategy { private static final Log logger = LogFactory.getLog(LogErrorContextMissingStrategy .class); /** - * Logs {@code message} on the {#code error} level. + * Logs {@code message} on the {@code error} level, and a stacktrace at {@code debug} level. * @param message the message to log * @param exceptionClass the type of exception suppressed in favor of logging {@code message} */ @@ -33,7 +33,7 @@ public class LogErrorContextMissingStrategy implements ContextMissingStrategy { public void contextMissing(String message, Class exceptionClass) { logger.error("Suppressing AWS X-Ray context missing exception (" + exceptionClass.getSimpleName() + "): " + message); if (logger.isDebugEnabled()) { - logger.debug(new RuntimeException(message)); + logger.debug("Attempted to find context at:", new RuntimeException(message)); } } }