From ed2aeecfddcbf02a9183a5b5b29262ebda4c27fe Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 30 Aug 2008 22:03:25 -0400 Subject: [PATCH] add initialization info to the queue handlers darcs-hash:20080831020325-84dde-606d52b08146d4c226f812a9f47b5a3ec1abc743.gz --- scripts/ombqueuehandler.php | 1 + scripts/publicqueuehandler.php | 1 + scripts/smsqueuehandler.php | 1 + scripts/xmppconfirmhandler.php | 1 + scripts/xmppdaemon.php | 2 +- scripts/xmppqueuehandler.php | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/ombqueuehandler.php b/scripts/ombqueuehandler.php index 292d139563..fa34468538 100755 --- a/scripts/ombqueuehandler.php +++ b/scripts/ombqueuehandler.php @@ -40,6 +40,7 @@ class OmbQueueHandler extends QueueHandler { } function start() { + $this->log(LOG_INFO, "INITIALIZE"); return true; } diff --git a/scripts/publicqueuehandler.php b/scripts/publicqueuehandler.php index eb18d2c347..7176c345b9 100755 --- a/scripts/publicqueuehandler.php +++ b/scripts/publicqueuehandler.php @@ -40,6 +40,7 @@ class PublicQueueHandler extends QueueHandler { } function start() { + $this->log(LOG_INFO, "INITIALIZE"); # Low priority; we don't want to receive messages $this->conn = jabber_connect($this->_id, NULL, -1); $this->conn->addEventHandler('message', 'forward_message', $this); diff --git a/scripts/smsqueuehandler.php b/scripts/smsqueuehandler.php index 044aee70f0..aa07ca46dc 100755 --- a/scripts/smsqueuehandler.php +++ b/scripts/smsqueuehandler.php @@ -40,6 +40,7 @@ class SmsQueueHandler extends QueueHandler { } function start() { + $this->log(LOG_INFO, "INITIALIZE"); return true; } diff --git a/scripts/xmppconfirmhandler.php b/scripts/xmppconfirmhandler.php index 7a369a33f2..d2dbe4abca 100755 --- a/scripts/xmppconfirmhandler.php +++ b/scripts/xmppconfirmhandler.php @@ -47,6 +47,7 @@ class XmppConfirmHandler { function start() { # Low priority; we don't want to receive messages + $this->log(LOG_INFO, "INITIALIZE"); $this->conn = jabber_connect($this->_id, NULL, -1); $this->conn->addEventHandler('message', 'forward_message', $this); return !is_null($this->conn); diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 1cfcd481f5..77cfc1963f 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -52,7 +52,7 @@ class XMPPDaemon { $this->resource = common_config('xmpp', 'resource') . 'daemon'; } - $this->log(LOG_INFO, "{$this->user}@{$this->server}/{$this->resource}"); + $this->log(LOG_INFO, "INITIALIZE XMPPDaemon {$this->user}@{$this->server}/{$this->resource}"); } function connect() { diff --git a/scripts/xmppqueuehandler.php b/scripts/xmppqueuehandler.php index 52db0eb59f..5015274c6c 100755 --- a/scripts/xmppqueuehandler.php +++ b/scripts/xmppqueuehandler.php @@ -42,6 +42,7 @@ class XmppQueueHandler extends QueueHandler { } function start() { + $this->log(LOG_INFO, "INITIALIZE"); # Low priority; we don't want to receive messages $this->conn = jabber_connect($this->_id, NULL, -1); $this->conn->addEventHandler('message', 'forward_message', $this); -- 2.39.5