WooCommerce Beta Tester tracks -- Support array property (#39922)

* Support array property

* Add changelog
This commit is contained in:
Moon 2023-08-28 12:44:27 -07:00 committed by GitHub
parent 1708b854f7
commit 00fb7dab11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,9 @@ class Tracks_Debug_Log {
}
foreach ( $properties as $key => $property ) {
if ( is_array( $property ) ) {
$property = print_r( $property, true );
}
if ( $logger ) {
$logger->debug(
" - {$key}: {$property}",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Add support for logging array property in track logger