Remove new handler arguments from `wc_register_default_log_handler`

This commit is contained in:
Jon Surrell 2016-12-18 20:44:04 +01:00
parent 970a33e182
commit d4e8bb82e6
1 changed files with 2 additions and 2 deletions

View File

@ -1471,9 +1471,9 @@ function wc_print_r( $expression, $return = false ) {
*/
function wc_register_default_log_handler( $handlers ) {
if ( 'db' === get_option( 'woocommerce_default_log_handler' ) ) {
array_push( $handlers, new WC_Log_Handler_DB( array( 'threshold' => 'debug' ) ) );
array_push( $handlers, new WC_Log_Handler_DB() );
} else {
array_push( $handlers, new WC_Log_Handler_File( array( 'threshold' => 'debug' ) ) );
array_push( $handlers, new WC_Log_Handler_File() );
}
return $handlers;