From: Evan Prodromou Date: Sun, 28 Jun 2009 20:38:59 +0000 (-0400) Subject: if not in daemon mode, xmppdaemon sends log to stdout X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25c721f6ffc5ecf5825b60ab7b9c021d78b50888;p=quix0rs-gnu-social.git if not in daemon mode, xmppdaemon sends log to stdout --- diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 608cc1a36c..3e46c8e260 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -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)