Skip to content
Prev Previous commit
Next Next commit
fix: unnecessary exc_info in example exception
  • Loading branch information
heitorlessa committed Jun 12, 2020
commit 1f43f33ff0aec0407ae2c5b08a2ec350fcaf51b2
2 changes: 1 addition & 1 deletion example/hello_world/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def lambda_handler(event, context):
metrics.add_metric(name="SuccessfulLocations", unit="Count", value=1)
except requests.RequestException as e:
# Send some context about this error to Lambda Logs
logger.exception(e, exc_info=True)
logger.exception(e)
raise

with single_metric(name="UniqueMetricDimension", unit="Seconds", value=1) as metric:
Expand Down