forked from GNUsocial/gnu-social
if not in daemon mode, xmppdaemon sends log to stdout
This commit is contained in:
parent
9f079764aa
commit
25c721f6ff
@ -309,7 +309,14 @@ class XMPPDaemon extends Daemon
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user