if not in daemon mode, xmppdaemon sends log to stdout

This commit is contained in:
Evan Prodromou 2009-06-28 16:38:59 -04:00
parent 9f079764aa
commit 25c721f6ff

View File

@ -309,7 +309,14 @@ class XMPPDaemon extends Daemon
function log($level, $msg) function log($level, $msg)
{ {
common_log($level, 'XMPPDaemon('.$this->resource.'): '.$msg); $text = 'XMPPDaemon('.$this->resource.'): '.$msg;
common_log($level, $text);
if (!$this->daemonize)
{
$line = common_log_line($level, $text);
echo $line;
echo "\n";
}
} }
function subscribed($to) function subscribed($to)