* Why is logging recording all of the logs forever? Fixed memory leak.

git-svn-id: svn://netflint.net/xmpphp@65 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy 2008-11-21 08:11:59 +00:00
parent 0434419a16
commit e9d36af595

View File

@ -84,7 +84,7 @@ class XMPPHP_Log {
*/ */
public function log($msg, $runlevel = self::LEVEL_INFO) { public function log($msg, $runlevel = self::LEVEL_INFO) {
$time = time(); $time = time();
$this->data[] = array($this->runlevel, $msg, $time); #$this->data[] = array($this->runlevel, $msg, $time);
if($this->printout and $runlevel <= $this->runlevel) { if($this->printout and $runlevel <= $this->runlevel) {
$this->writeLine($msg, $runlevel, $time); $this->writeLine($msg, $runlevel, $time);
} }