Skip to content

Commit

Permalink
Fixed: debug entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Feb 28, 2025
1 parent b8e587d commit 632a4f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Integrations/EDD.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function track_purchase( $order_id, $payment ) {
]
);

Debug::log( __( 'Purchase event properties: ', 'plausible-analytics' ) . print_r( $props, true ) );
Debug::log( __( 'Purchase event properties: ', 'plausible-analytics' ), $props );

$proxy = new Proxy( false );

Expand Down
4 changes: 2 additions & 2 deletions src/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ public function do_request( $name = 'pageview', $domain = '', $url = '', $props
$body[ 'p' ] = $props; // @codeCoverageIgnore
}

Debug::log( __( 'Request Body: ', 'plausible-analytics' ) . print_r( $body, true ) );
Debug::log( __( 'Request Body: ', 'plausible-analytics' ), $body );

$request->set_body( wp_json_encode( $body ) );

$response = $this->send_event( $request );

Debug::log( __( 'Response: ', 'plausible-analytics' ) . print_r( $response, true ) );
Debug::log( __( 'Response: ', 'plausible-analytics' ), $response );

return $response;
}
Expand Down

0 comments on commit 632a4f1

Please sign in to comment.