diff --git a/wp-content/db.php b/wp-content/db.php index 0f9f5a1ee205f4a80d5ef5b2ffa225efa0217781..2bd49b4162386ef7fd706ddc672df2e46b129dbd 100644 --- a/wp-content/db.php +++ b/wp-content/db.php @@ -416,6 +416,11 @@ class hyperdb extends wpdb { $this->run_callbacks( 'dataset_found', $dataset ); + if (WP_DEBUG === true) { + $_ai_msg = sprintf("We choose dataset %s for query '%s'", $this->dataset, $query); + $this->print_error($_ai_msg); + } + if ( empty( $this->hyper_servers ) ) { if ( $this->is_mysql_connection( $this->dbh ) ) return $this->dbh;