Changeset 17900

Show
Ignore:
Timestamp:
10/03/08 16:58:36 (2 months ago)
Author:
bergie
Message:

Yet more debug removal

Files:

Legend:

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

    r17899 r17900  
    23032303 
    23042304        debug_push_class(__CLASS__, __FUNCTION__); 
    2305         debug_add("Serving Attachment {$attachment->name} (parent: {$attachment->parentguid})", MIDCOM_LOG_INFO); 
     2305        //debug_add("Serving Attachment {$attachment->name} (parent: {$attachment->parentguid})", MIDCOM_LOG_INFO); 
    23062306 
    23072307        $etag = md5("{$last_modified}{$attachment->name}{$attachment->mimetype}{$attachment->guid}"); 
     
    23232323            while(@ob_end_flush()); 
    23242324            //debug_add('headers sent, exit()ing so nothing has a chance the mess things up anymore'); 
    2325             //debug_pop(); 
     2325            debug_pop(); 
     2326            debug_add("End of MidCOM run: {$_SERVER['REQUEST_URI']}", MIDCOM_LOG_INFO); 
    23262327            exit(); 
    23272328        } 
     
    24072408        fpassthru($f); 
    24082409        $attachment->close(); 
    2409         debug_add('file sent, exit()ing so nothing has a chance the mess things up anymore'); 
     2410        //debug_add('file sent, exit()ing so nothing has a chance the mess things up anymore'); 
    24102411        debug_pop(); 
     2412        debug_add("End of MidCOM run: {$_SERVER['REQUEST_URI']}", MIDCOM_LOG_INFO); 
    24112413        exit(); 
    24122414    } 
  • trunk/midcom/midcom.core/midcom/baseclasses/components/request.php

    r17556 r17900  
    545545        if (! $result) 
    546546        { 
    547             debug_push_class($this, 'can_handle'); 
    548             debug_add('The _on_can_handle event handler returned false, aborting.'); 
    549             debug_pop(); 
     547            //debug_push_class(__CLASS__, __FUNCTION__); 
     548            //debug_add('The _on_can_handle event handler returned false, aborting.'); 
     549            //debug_pop(); 
    550550            return false; 
    551551        } 
     
    558558            $namespace = $argv[0]; 
    559559            $plugin = $argv[1]; 
    560             debug_push_class($this, 'can_handle'); 
     560            debug_push_class(__CLASS__, __FUNCTION__); 
    561561            debug_add("Loading the plugin {$namespace}/{$plugin}"); 
    562562            debug_pop(); 
     
    606606                else 
    607607                { 
    608                     debug_push_class($this, 'can_handle'); 
    609                     debug_add("Handler method {$method} returned FALSE, we cannot handle this therefore."); 
    610                     debug_pop(); 
     608                    //debug_push_class(__CLASS__, __FUNCTION__); 
     609                    //debug_add("Handler method {$method} returned FALSE, we cannot handle this therefore."); 
     610                    //debug_pop(); 
    611611                    return false; 
    612612                } 
     
    618618        } 
    619619        // No match 
    620         debug_push_class($this, 'can_handle'); 
    621         debug_add('No matching handler could be found, we cannot handle this therefore.'); 
    622         debug_pop(); 
     620        //debug_push_class(__CLASS__, __FUNCTION__); 
     621        //debug_add('No matching handler could be found, we cannot handle this therefore.'); 
     622        //debug_pop(); 
    623623        return false; 
    624624    } 
     
    665665        if (! $result) 
    666666        { 
    667             debug_push_class($this, 'handle'); 
    668             debug_add('The _on_handle event handler returned false, aborting.'); 
    669             debug_pop(); 
     667            //debug_push_class($this, 'handle'); 
     668            //debug_add('The _on_handle event handler returned false, aborting.'); 
     669            //debug_pop(); 
    670670            return false; 
    671671        } 
     
    775775    public function show() 
    776776    { 
    777          debug_push_class($this, 'show'); 
    778  
    779777        // Call the event handler 
    780778        $result = $this->_on_show($this->_handler['id']); 
    781779        if (! $result) 
    782780        { 
     781            debug_push_class(__CLASS__, __FUNCTION__); 
    783782            debug_add('The _on_show event handler returned false, aborting.'); 
    784783            debug_pop(); 
     
    798797 
    799798        $this->_on_shown($this->_handler['id']); 
    800  
    801         debug_pop(); 
    802799    } 
    803800 
  • trunk/midcom/midcom.core/midcom/baseclasses/core/dbobject.php

    r17898 r17900  
    18641864        if (count($result) == 0) 
    18651865        { 
    1866             debug_push_class($object, __FUNCTION__); 
    1867             debug_add("Cannot retrieve the parameter {$domain} for {$object->__table__} ID {$object->id}; query execution failed, this is most probably an empty resultset.", 
    1868                 MIDCOM_LOG_INFO); 
    1869             debug_pop(); 
     1866            //debug_push_class($object, __FUNCTION__); 
     1867            //debug_add("Cannot retrieve the parameter {$domain} for {$object->__table__} ID {$object->id}; query execution failed, this is most probably an empty resultset.", 
     1868            //    MIDCOM_LOG_INFO); 
     1869            //debug_pop(); 
    18701870            return Array(); 
    18711871        } 
  • trunk/midcom/midcom.core/midcom/baseclasses/database/attachment.php

    r17747 r17900  
    103103    function open() 
    104104    { 
    105         debug_push_class(__CLASS__, __FUNCTION__); 
    106  
    107105        if (! $this->id) 
    108106        { 
     107            debug_push_class(__CLASS__, __FUNCTION__); 
    109108            debug_add('Cannot open a non-persistent attachment..', MIDCOM_LOG_WARN); 
    110109            debug_print_r('Object state:', $this); 
     
    115114        if ($this->_open_handle !== null) 
    116115        { 
     116            debug_push_class(__CLASS__, __FUNCTION__); 
    117117            debug_add("Warning, the Attachment {$this->id} already had an open file handle, we close it impliciltly.", MIDCOM_LOG_WARN); 
     118            debug_pop(); 
    118119            fclose($this->_open_handle); 
    119120            $this->_open_handle = null; 
     
    168169        if (! $handle) 
    169170        { 
     171            debug_push_class(__CLASS__, __FUNCTION__); 
    170172            debug_add("Failed to open attachment with mode {$mode}, last Midgard error was:" . mgd_errstr(), MIDCOM_LOG_WARN); 
     173            debug_pop(); 
    171174        } 
    172175 
    173176        $this->_open_handle = $handle; 
    174177 
    175         debug_pop(); 
    176178        return $handle; 
    177179    } 
  • trunk/midcom/midcom.core/midcom/services/auth.php

    r17899 r17900  
    515515    function _check_for_new_login_session() 
    516516    { 
    517         debug_push_class(__CLASS__, __FUNCTION__); 
    518  
    519517        $credentials = $this->_auth_frontend->read_authentication_data(); 
    520518 
     
    529527        if (! $this->_auth_backend->create_login_session($credentials['username'], $credentials['password'])) 
    530528        { 
     529            debug_push_class(__CLASS__, __FUNCTION__); 
    531530            debug_add('The login information passed to the system was invalid.', MIDCOM_LOG_ERROR); 
    532531            debug_add("Username was {$credentials['username']}"); 
     
    536535        } 
    537536 
     537        debug_push_class(__CLASS__, __FUNCTION__); 
    538538        debug_add('Authentication was successful, we have a new login session now. Updating timestamps'); 
     539        debug_pop(); 
    539540 
    540541        $this->_sync_user_with_backend(); 
     
    559560            // This will exit. 
    560561        } 
    561  
    562         debug_pop(); 
    563562        return true; 
    564563    } 
  • trunk/midcom/midcom.core/midcom/services/cache/module/content.php

    r17899 r17900  
    10211021        $request_id = $this->generate_request_identifier($context); 
    10221022         
    1023         debug_push_class(__CLASS__, __FUNCTION__); 
    1024         debug_add("Creating cache entry for {$content_id} as {$request_id}", MIDCOM_LOG_INFO); 
    1025         debug_pop(); 
     1023        //debug_push_class(__CLASS__, __FUNCTION__); 
     1024        //debug_add("Creating cache entry for {$content_id} as {$request_id}", MIDCOM_LOG_INFO); 
     1025        //debug_pop(); 
    10261026 
    10271027        if (!is_null($this->_expires)) 
     
    10421042        $entry_data['last_modified'] = $this->_last_modified; 
    10431043        $entry_data['sent_headers'] = $this->_sent_headers; 
     1044 
    10441045        /** 
    10451046         * Remove comment to debug cache 
    1046          */ 
    10471047        debug_push_class(__CLASS__, __FUNCTION__);         
    10481048        debug_print_r("Writing meta-cache entry {$content_id}", $entry_data); 
    10491049        debug_pop(); 
    1050         /* */ 
     1050        */ 
     1051 
    10511052        $this->_meta_cache->open(true); 
    10521053        $this->_meta_cache->put($content_id, $entry_data);