Log XML in server mode too
This commit is contained in:
parent
3f3c739887
commit
edcb55d4ce
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ Component::Component(Swift::EventLoop *loop, Config *config, Factory *factory) {
|
|||
m_server->start();
|
||||
m_stanzaChannel = m_server->getStanzaChannel();
|
||||
m_iqRouter = m_server->getIQRouter();
|
||||
|
||||
m_server->onDataRead.connect(bind(&Component::handleDataRead, this, _1));
|
||||
m_server->onDataWritten.connect(bind(&Component::handleDataWritten, this, _1));
|
||||
}
|
||||
else {
|
||||
m_component = new Swift::Component(loop, m_factories, m_jid, CONFIG_STRING(m_config, "service.password"));
|
||||
|
|
Loading…
Add table
Reference in a new issue