From 25c721f6ffc5ecf5825b60ab7b9c021d78b50888 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 28 Jun 2009 16:38:59 -0400 Subject: [PATCH] if not in daemon mode, xmppdaemon sends log to stdout --- scripts/xmppdaemon.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) -- 2.39.5