Skip to content

Commit

Permalink
Add http method to SimpleRetriever log message on request
Browse files Browse the repository at this point in the history
  • Loading branch information
clnoll committed Dec 1, 2022
1 parent b1c50b8 commit 1de7aae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def parse_records_and_emit_request_and_responses(self, request, response, stream

def _create_trace_message_from_request(self, request: requests.PreparedRequest):
# FIXME: this should return some sort of trace message
request_dict = {"url": request.url, "headers": dict(request.headers), "body": request.body}
request_dict = {"url": request.url, "method": request.method, "headers": dict(request.headers), "body": request.body}
log_message = filter_secrets(f"request:{json.dumps(request_dict)}")
return AirbyteMessage(type=MessageType.LOG, log=AirbyteLogMessage(level=Level.INFO, message=log_message))

Expand Down

0 comments on commit 1de7aae

Please sign in to comment.