Commit ed2aeecf authored by Evan Prodromou's avatar Evan Prodromou

add initialization info to the queue handlers

darcs-hash:20080831020325-84dde-606d52b08146d4c226f812a9f47b5a3ec1abc743.gz
parent 4173b5ce
......@@ -40,6 +40,7 @@ class OmbQueueHandler extends QueueHandler {
}
function start() {
$this->log(LOG_INFO, "INITIALIZE");
return true;
}
......
......@@ -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);
......
......@@ -40,6 +40,7 @@ class SmsQueueHandler extends QueueHandler {
}
function start() {
$this->log(LOG_INFO, "INITIALIZE");
return true;
}
......
......@@ -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);
......
......@@ -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() {
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment