Skip to content

Commit 21beb85

Browse files
committed
Added a log_debug() call before any request.
1 parent ad8f5b0 commit 21beb85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

class-gwiz-gf-openai.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,8 @@ public function make_request( $endpoint, $body, $feed ) {
17261726

17271727
$body = apply_filters( 'gf_openai_request_body', $body, $endpoint, $feed );
17281728

1729+
$this->log_debug( __METHOD__ . '(): ' . sprintf( __( 'Making request to %s', 'gravityforms-openai' ), $url ) );
1730+
17291731
// Cache successful responses.
17301732
$response = wp_remote_post($url, array_merge( array(
17311733
'body' => json_encode( $body ),

0 commit comments

Comments
 (0)