Assembla home | Assembla project page
 
Show
Ignore:
Timestamp:
04/13/08 03:17:59 (7 months ago)
Author:
Slynderdale
Message:

Some bug fixes and tweaks. Fixed up the error handling in URL a bit and also its URL checking. Added a check to the restart command in quit to check the syntax of Phergie before restarting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Driver/Abstract.php

    r218 r226  
    117117     * 
    118118     * @param string $message Debugging message 
    119      * @return void 
    120      */ 
    121     public function debug($message) 
     119     * @param bool $displayDebug Toggle whether to display the message in the 
     120     *                           console or not 
     121     * @return void 
     122     */ 
     123    public function debug($message, $displayDebug = true) 
    122124    { 
    123125        if ($this->getIni('debug')) { 
    124126            $message = '[' . date('H:i:s') . '] ' . $message . PHP_EOL; 
    125             echo $message; 
     127            if ($displayDebug) { 
     128                echo $message; 
     129            } 
    126130            if ($log = $this->getIni('log') and !empty($log)) { 
    127131                file_put_contents($log, $message, FILE_APPEND);