add initialization info to the queue handlers
darcs-hash:20080831020325-84dde-606d52b08146d4c226f812a9f47b5a3ec1abc743.gz
This commit is contained in:
parent
4173b5ce51
commit
ed2aeecfdd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user