remove some error logging - we send it to the client anyway

This commit is contained in:
xss 2022-11-16 13:37:16 +11:00
parent ce981593ec
commit ef53e123a0

View File

@ -357,7 +357,8 @@ def upload(event, context, orig_event):
lon_outliers = z_check(lons, 3)
alt_outliers = z_check(alts, 3)
if lat_outliers or lon_outliers or alt_outliers:
handle_error(f"Outlier check detected outlier, serial: {check_data[0]['serial']}", orig_event, context.log_stream_name)
pass
#handle_error(f"Outlier check detected outlier, serial: {check_data[0]['serial']}", orig_event, context.log_stream_name)
for index in lat_outliers:
payload_serials[serial][index]["lat_outlier"] = True
for index in lon_outliers:
@ -450,7 +451,7 @@ def lambda_handler(event, context):
"content-type": "application/json"
}
}
handle_error(json.dumps(output), orig_event, context.log_stream_name)
#handle_error(json.dumps(output), orig_event, context.log_stream_name)
return output
else:
return {"statusCode": 200, "body": "^v^ telm logged"}