Commit fe1f35c6 authored by joe's avatar joe Committed by lechuck

adding extreme debugging when wp_debug is true

parent ec2527e0
......@@ -406,6 +406,10 @@ class hyperdb extends wpdb {
else
$this->dataset = $dataset;
if (WP_DEBUG === true) {
$_ai_msg = sprintf("We choose dataset %s for query '%s'", $this->dataset, $query);
$this->print_error($_ai_msg);
}
// Determine whether the query must be sent to the master (a writable server)
if ( !empty( $use_master ) || $this->srtm === true || isset($this->srtm[$this->table]) ) {
$use_master = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment