Software / code / prosody
Comparison
core/componentmanager.lua @ 1434:b5d4db71ef1a
Log stanza if stanza.to isn't set for some component errors.
| author | nolan@nolan-eee |
|---|---|
| date | Sun, 28 Jun 2009 08:09:57 -0500 |
| parent | 1366:54b5121b6c83 |
| child | 1442:df9d78544f34 |
comparison
equal
deleted
inserted
replaced
| 1423:5e72c3e1743a | 1434:b5d4db71ef1a |
|---|---|
| 73 end | 73 end |
| 74 if component then | 74 if component then |
| 75 log("debug", "%s stanza being handled by component: %s", stanza.name, host); | 75 log("debug", "%s stanza being handled by component: %s", stanza.name, host); |
| 76 component(origin, stanza, hosts[host]); | 76 component(origin, stanza, hosts[host]); |
| 77 else | 77 else |
| 78 log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to); | 78 log("error", "Component manager recieved a stanza for a non-existing component: " .. (stanza.attr.to or stanza)); |
| 79 end | 79 end |
| 80 end | 80 end |
| 81 | 81 |
| 82 function create_component(host, component) | 82 function create_component(host, component) |
| 83 -- TODO check for host well-formedness | 83 -- TODO check for host well-formedness |