diff --git a/aws_xray_sdk/core/context.py b/aws_xray_sdk/core/context.py index 4f8445e7..6999b231 100644 --- a/aws_xray_sdk/core/context.py +++ b/aws_xray_sdk/core/context.py @@ -120,7 +120,6 @@ def handle_context_missing(self): Called whenever there is no trace entity to access or mutate. """ if self.context_missing == 'RUNTIME_ERROR': - log.error(MISSING_SEGMENT_MSG) raise SegmentNotFoundException(MISSING_SEGMENT_MSG) else: log.error(MISSING_SEGMENT_MSG)