Changeset 12676

Show
Ignore:
Timestamp:
10/05/07 14:39:16 (1 year ago)
Author:
bergie
Message:

Log the RCS commands used to help debugging, refs #108

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/services/rcs/backend/rcs.php

    r11628 r12676  
    128128        } 
    129129         
    130         $command = "co -l {$filename}"; 
     130        $command = "co -l {$filename} 2>&1"; 
    131131        $status = $this->exec($command); 
    132132         
     
    135135      
    136136        $this->rcs_writefile($guid, $data); 
    137         $command = "ci -m'" . $message . "' {$filename}"; 
     137        $command = "ci -m'" . $message . "' {$filename} 2>&1"; 
    138138        $status = $this->exec($command); 
    139139     
     
    165165        //settype ($revision, "float"); 
    166166         
    167         $command = "co -r" . trim($revision) .  " " . $filepath
     167        $command = "co -r" . trim($revision) .  " " . $filepath . "2>&1"
    168168        $output = null; 
    169169        $status = null; 
     
    511511        } 
    512512         
    513         $command = sprintf("ci -i -t-'%s' %s", $description, $filepath); 
     513        $command = sprintf("ci -i -t-'%s' %s 2>&1", $description, $filepath); 
    514514        $status = $this->exec($command); 
    515515         
     
    527527        $status = null; 
    528528        $output = null; 
    529         @exec($command, $output, $status); 
     529 
     530        debug_push_class(__CLASS__, __FUNCTION__); 
     531        debug_add("Executing '{$command}'"); 
     532        debug_pop(); 
     533         
     534        @exec($command, $output, $status);                 
    530535        return $status;    
    531536    } 
     
    602607                        } 
    603608                    } 
    604                 } elseif (!is_null($GLOBALS['midcom_config']['utility_diff'])){ 
     609                }  
     610                elseif (!is_null($GLOBALS['midcom_config']['utility_diff'])) 
     611                { 
    605612                    /* this doesnt work */ 
    606                     $command = $GLOBALS['midcom_config']['utility_diff'] . " -u <(echo \"$oldest_value\") <(echo \"{$newest[$attribute]}\") "; 
     613                    $command = $GLOBALS['midcom_config']['utility_diff'] . " -u <(echo \"$oldest_value\") <(echo \"{$newest[$attribute]}\")"; 
    607614                     
    608615                    $output = array(); 
  • trunk/midcom/midcom.helper.datamanager2/storage/midgard.php

    r12093 r12676  
    4242            debug_push_class(__CLASS__, __FUNCTION__); 
    4343            debug_print_r('Object passed:', $object); 
     44            debug_pop(); 
    4445            $_MIDCOM->generate_error(MIDCOM_ERRCRIT, 
    4546                'The midgard storage backend requires a MidCOM DBA object.');