Skip to content

Commit

Permalink
Log query: Fail silently
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed Jan 7, 2024
1 parent d38c23a commit d6ce006
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions inc/class-log-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ protected function query_overview_sqlite( $args ) {
$result_log_rows = $wpdb->get_results( $sql_query_log_rows, OBJECT_K ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared

if ( ! empty( $wpdb->last_error ) ) {
sh_d( '$wpdb->last_error', $wpdb->last_error );
sh_d( '$sql_query_log_rows', $sql_query_log_rows );
exit;
}

Expand Down Expand Up @@ -411,8 +409,6 @@ protected function query_overview_mysql( $args ) {
$result_log_rows = $wpdb->get_results( $sql_query_log_rows, OBJECT_K ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared

if ( ! empty( $wpdb->last_error ) ) {
sh_d( '$wpdb->last_error', $wpdb->last_error );
sh_d( '$sql_query_log_rows', $sql_query_log_rows );
exit;
}

Expand Down

0 comments on commit d6ce006

Please sign in to comment.