Software / code / prosody
Comparison
plugins/mod_proxy65.lua @ 2305:7ddd00260808
mod_proxy65: Replace error() calls with module:log("error", ...)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 03 Dec 2009 14:13:09 +0000 |
| parent | 2273:b98b29f614ae |
| child | 2306:21f0d80f244a |
comparison
equal
deleted
inserted
replaced
| 2304:26f59e5e5c03 | 2305:7ddd00260808 |
|---|---|
| 245 end | 245 end |
| 246 return; | 246 return; |
| 247 end | 247 end |
| 248 | 248 |
| 249 if not connlisteners.register(module.host .. ':proxy65', connlistener) then | 249 if not connlisteners.register(module.host .. ':proxy65', connlistener) then |
| 250 error("mod_proxy65: Could not establish a connection listener. Check your configuration please."); | 250 module:log("error", "mod_proxy65: Could not establish a connection listener. Check your configuration please."); |
| 251 error(" one possible cause for this would be that two proxy65 components share the same port."); | 251 module:log("error", "Possibly two proxy65 components are configured to share the same port."); |
| 252 end | 252 end |
| 253 | 253 |
| 254 connlisteners.start(module.host .. ':proxy65'); | 254 connlisteners.start(module.host .. ':proxy65'); |
| 255 component = componentmanager.register_component(host, handle_to_domain); | 255 component = componentmanager.register_component(host, handle_to_domain); |