Skip to content

Commit

Permalink
Corrects underpin autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed May 12, 2021
1 parent 1e89089 commit 3c4aad9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions debug-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,5 @@
}, 10, 4 );

add_action( 'underpin/logger/after_logged_item', function ( \Underpin_Logger\Factories\Log_Item $logged_item, $logger ) {
ob_start();
json_encode( $logged_item->data );

do_action( 'qm/' . $logger->psr_level, $logged_item->code . ':' . $logged_item->message . "\n" . ob_get_clean() );
do_action( 'qm/' . $logger->psr_level, $logged_item->code . ':' . $logged_item->message . "\n" . json_encode( $logged_item->data ) );
}, 10, 2 );

0 comments on commit 3c4aad9

Please sign in to comment.