Mercurial > prosody-hg
comparison core/componentmanager.lua @ 983:460429a59c83
componentmanager: Small logging fix
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 11 Apr 2009 22:24:44 +0100 |
| parents | dbbeb73952e6 |
| children | 9acc1c2ceb2c |
comparison
equal
deleted
inserted
replaced
| 982:dbbeb73952e6 | 983:460429a59c83 |
|---|---|
| 67 local component = nil; | 67 local component = nil; |
| 68 if not component then component = components[stanza.attr.to]; end -- hack to allow hooking node@server/resource and server/resource | 68 if not component then component = components[stanza.attr.to]; end -- hack to allow hooking node@server/resource and server/resource |
| 69 if not component then component = components[node.."@"..host]; end -- hack to allow hooking node@server | 69 if not component then component = components[node.."@"..host]; end -- hack to allow hooking node@server |
| 70 if not component then component = components[host]; end | 70 if not component then component = components[host]; end |
| 71 if component then | 71 if component then |
| 72 log("debug", "stanza being handled by component: "..host); | 72 log("debug", "%s stanza being handled by component: %s", stanza.name, host); |
| 73 component(origin, stanza, hosts[host]); | 73 component(origin, stanza, hosts[host]); |
| 74 else | 74 else |
| 75 log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to); | 75 log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to); |
| 76 end | 76 end |
| 77 end | 77 end |
