Automattic / woocommerce-services

WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print USPS shipping labels.
GNU General Public License v2.0
105 stars 20 forks source link

Fix/issue 2732 - Add Logger for "Live Rates" Feature. #2741

Closed iyut closed 4 weeks ago

iyut commented 1 month ago

Description

Adding the debug info into logger. It needs to be done so the user can still see the debug from the WooCommerce > Status > Logs page when debug mode is enabled.

Related issue(s)

Fixes #2732

Steps to reproduce & screenshots/GIFs

  1. Set the cart and checkout page to use WC Blocks.
  2. Make sure the "Live Rates" feature and "Debug Mode" is enabled.
  3. Add something to product.
  4. Go to cart or checkout to make the debug running.
  5. Go to WooCommerce > Status > Logs in the admin.
  6. "woocommerce-services-shipping" log will appear. image

Checklist