WooCommerce Beta Tester tracks -- Support array property (#39922)
* Support array property * Add changelog
This commit is contained in:
parent
1708b854f7
commit
00fb7dab11
|
@ -70,6 +70,9 @@ class Tracks_Debug_Log {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( $properties as $key => $property ) {
|
foreach ( $properties as $key => $property ) {
|
||||||
|
if ( is_array( $property ) ) {
|
||||||
|
$property = print_r( $property, true );
|
||||||
|
}
|
||||||
if ( $logger ) {
|
if ( $logger ) {
|
||||||
$logger->debug(
|
$logger->debug(
|
||||||
" - {$key}: {$property}",
|
" - {$key}: {$property}",
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: tweak
|
||||||
|
|
||||||
|
Add support for logging array property in track logger
|
Loading…
Reference in New Issue