add initialization info to the queue handlers

darcs-hash:20080831020325-84dde-606d52b08146d4c226f812a9f47b5a3ec1abc743.gz
This commit is contained in:
Evan Prodromou 2008-08-30 22:03:25 -04:00
parent 4173b5ce51
commit ed2aeecfdd
6 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class OmbQueueHandler extends QueueHandler {
}
function start() {
$this->log(LOG_INFO, "INITIALIZE");
return true;
}

View File

@ -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);

View File

@ -40,6 +40,7 @@ class SmsQueueHandler extends QueueHandler {
}
function start() {
$this->log(LOG_INFO, "INITIALIZE");
return true;
}

View File

@ -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);

View File

@ -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() {

View File

@ -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);