Changeset 11928

Show
Ignore:
Timestamp:
08/30/07 23:52:36 (1 year ago)
Author:
rambo
Message:

refs #102. removed some debug logging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/core/querybuilder.php

    r11915 r11928  
    276276    function _execute_and_check_privileges($false_on_empty_mgd_resultset = false) 
    277277    { 
    278         debug_push_class(__CLASS__, __FUNCTION__); 
    279278        // TODO: Remove this silence after all MgdSchemas are fixed 
    280279        $result = @$this->_qb->execute(); 
     
    282281        { 
    283282            $this->_qb_error_result = $result; 
     283            debug_push_class(__CLASS__, __FUNCTION__); 
    284284            debug_print_r('Result was:', $result); 
    285285            debug_add('The querybuilder failed to execute, aborting.', MIDCOM_LOG_ERROR); 
     
    293293            return $result; 
    294294        } 
    295         debug_add('Got ' . count($result) . ' initial results'); 
    296295        if (   empty($result) 
    297296            && $false_on_empty_mgd_resultset) 
     
    304303        $newresult = Array(); 
    305304        $classname = $this->_real_class; 
    306         $skipped_objects = 0; 
    307305        $this->denied = 0; 
     306        debug_push_class(__CLASS__, __FUNCTION__); 
    308307        foreach ($result as $key => $value) 
    309308        { 
     
    311310            if (isset($this->_seen_guids[$value->guid])) 
    312311            { 
    313                 debug_add("The {$classname} object {$value->guid} has already been seen, probably MultiLang bug", MIDCOM_LOG_WARN); 
    314                 //debug_add('var_export($seen_guids): ' . var_export($this->_seen_guids, true)); 
     312                //debug_add("The {$classname} object {$value->guid} has already been seen, probably MultiLang bug", MIDCOM_LOG_WARN); 
    315313                continue; 
    316314            } 
     
    324322                // This is logged by the callers 
    325323                $this->denied++; 
    326                 $skipped_objects++; 
    327324                continue; 
    328325            } 
     
    333330                debug_add("Could not create a MidCOM DBA instance of the {$classname} ID {$value->id}. See debug level log for details.", 
    334331                    MIDCOM_LOG_INFO); 
    335                 $skipped_objects++; 
    336332                continue; 
    337333            } 
     
    345341                    debug_add("Could not create a MidCOM metadata instance for {$classname} ID {$value->id}, assuming an invisible object.", 
    346342                        MIDCOM_LOG_INFO); 
    347                     $skipped_objects++; 
    348343                    continue; 
    349344                } 
     
    352347                { 
    353348                    debug_add("The {$classname} ID {$value->id} is hidden by metadata.", MIDCOM_LOG_INFO); 
    354                     $skipped_objects++; 
    355349                    continue; 
    356350                } 
     
    359353            $newresult[] = $object; 
    360354        } 
    361         debug_add('Returning ' . count($newresult) . ' items'); 
     355        //debug_add('Returning ' . count($newresult) . ' items'); 
    362356        debug_pop(); 
    363357        return $newresult;