Skip to content

Commit 50268f8

Browse files
logging
1 parent 3b6a300 commit 50268f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/Visualizer/Source/Json.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function parse() {
190190
$temp = array();
191191
for ( $depth = 0; $depth < count( $leaf ); $depth++ ) {
192192
if ( ! isset( $leaf[ $depth ][ $tag ] ) ) {
193-
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Element %s not present at depth %d. Ignoring.', $tag, $depth ), 'debug', __FILE__, __LINE__ );
193+
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Element %s not present at depth %d in %d elements. Ignoring.', $tag, $depth, count( $leaf ) ), 'debug', __FILE__, __LINE__ );
194194
continue;
195195
}
196196
$temp[] = $leaf[ $depth ][ $tag ];
@@ -241,6 +241,7 @@ public function parse() {
241241
/**
242242
* Determines which keys are common to all the data and returns an array with only those elements.
243243
* This is to ensure that the data set displayed on the table is consistent.
244+
* Inconsistent data causes the table to not display.
244245
*
245246
* @since ?
246247
*

0 commit comments

Comments
 (0)