Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Change request logs to debug level #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openai/api_requestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def _prepare_request_raw(

headers = self.request_headers(method, headers, request_id)

util.log_info("Request to OpenAI API", method=method, path=abs_url)
util.log_debug("Request to OpenAI API", method=method, path=abs_url)
util.log_debug("Post details", data=data, api_version=self.api_version)

return abs_url, headers, data
Expand Down Expand Up @@ -523,7 +523,7 @@ def request_raw(
raise error.APIConnectionError(
"Error communicating with OpenAI: {}".format(e)
) from e
util.log_info(
util.log_debug(
"OpenAI API response",
path=abs_url,
response_code=result.status_code,
Expand Down