woocommerce/plugins/woocommerce-beta-tester/changelog
Chi-Hsuan Huang cfca07eca8
Reducing Noise in Remote Logging (#51357)
* Refactor remote logging in WooCommerce

This commit refactors the remote logging functionality in WooCommerce to improve its efficiency and flexibility.

- In the `class-woocommerce.php` file, the `context` array now includes a new key `remote-logging` to indicate whether the error should be logged remotely if remote logging is enabled.

- In the `RemoteLogger.php` file, the `file` key in the `context['error']` array is now assigned to the `$log_data` array, and then unset from the `context['error']` array.

- The `should_handle` method in the `RemoteLogger` class now checks for the presence of the `remote-logging` key in the `context` array. If it is not set or set to `false`, the log is ignored.

- The `RemoteLoggerTest.php` file includes new test cases to ensure that the `should_handle` method returns `false` when the `remote-logging` key is not present in the `context` array.

These changes improve the remote logging functionality in WooCommerce and make it more robust and efficient.

* Revert log format change

* Set remote-logging context to true in log remote event method

* Add changelog

* revert change

* revert change
2024-09-18 08:57:32 +08:00
..
.gitkeep add changelogger and changelog entry 2022-04-21 11:39:41 +12:00
50372-48150-move-patterns-endpoint CYS - Move the `ai/patterns` endpoint to woocommerce admin API (#50372) 2024-08-20 15:17:27 +02:00
50467-add-beta-tester-wcpay-test-order [Beta Tester] Add WCPay test order meta data (#50467) 2024-08-14 10:08:59 +12:00
50508-fix-beta-tester-build-deps [Beta Tester] Fix build:zip script to make sure dependencies are built first (#50508) 2024-08-09 20:43:26 +12:00
50518-fix-beta-tester-build [Beta Tester] Fix build step (#50518) 2024-08-13 11:17:33 +12:00
50568-update-wp-env wp-env: Update package dependency + add mysqlPort (#50568) 2024-08-12 12:56:49 -07:00
50654-add-beta-tester-wccom-endpoints-mods [Beta Tester] Add tool to force wccom endpoint errors or timeout (#50654) 2024-08-19 20:35:59 +12:00
50828-dev-constrain-pnpm-version Use syncpack to lock pnpm version till we can fix issues (#50828) 2024-08-22 12:34:42 +12:00
add-beta-tester-tool-fake-wcpay [Beta tester] Add fake WooPayments completion tool (#50699) 2024-08-22 10:27:35 +08:00
dev-beta-tester-prepare-release-2-4-0 Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
enhance-reduce-remote-logging-noise Reducing Noise in Remote Logging (#51357) 2024-09-18 08:57:32 +08:00
fix-remote-logging-tool-cache [Beta Tester] Flush cache after deleting option and resetting PHP rate limit (#50512) 2024-08-12 18:05:01 +08:00
update-deprecate-banner-layout Deprecate unsupported Inbox note banner layout (#51275) 2024-09-13 01:11:11 +00:00
update-move-woo-version-check Enhance WooCommerce version checking for remote logging reliability (#51009) 2024-08-30 20:25:52 +08:00
update-woo-pay-task Refactor WooCommercePayments task to use woo payment gateway from`WC()->payment_gateways->payment_gateways()` (#50953) 2024-08-28 10:44:28 +08:00