* don't hang if connection isn't made
git-svn-id: svn://netflint.net/xmpphp@18 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
@@ -38,7 +38,7 @@ class Logging {
|
||||
}
|
||||
|
||||
function log($msg, $runlevel=Null) {
|
||||
if(!$runlevel) $runlevel = LOGGING_INFO;
|
||||
if($runlevel === Null) $runlevel = LOGGING_INFO;
|
||||
$data[] = array($this->runlevel, $msg);
|
||||
if($this->printout and $runlevel <= $this->runlevel) print "{$this->names[$runlevel]}: $msg\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user