Mercurial > prosody-hg
comparison core/s2smanager.lua @ 543:cf6e19ea1cbc
Fix logger ids for c2s and s2sout
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 04 Dec 2008 16:41:32 +0000 |
| parents | cccd610a0ef9 |
| children | efde848869c5 |
comparison
equal
deleted
inserted
replaced
| 542:c9dbfcf21846 | 543:cf6e19ea1cbc |
|---|---|
| 106 local host_session = { to_host = to_host, from_host = from_host, notopen = true, type = "s2sout_unauthed", direction = "outgoing" }; | 106 local host_session = { to_host = to_host, from_host = from_host, notopen = true, type = "s2sout_unauthed", direction = "outgoing" }; |
| 107 hosts[from_host].s2sout[to_host] = host_session; | 107 hosts[from_host].s2sout[to_host] = host_session; |
| 108 | 108 |
| 109 local log; | 109 local log; |
| 110 do | 110 do |
| 111 local conn_name = "s2sout"..tostring(conn):match("[a-f0-9]*$"); | 111 local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$"); |
| 112 log = logger_init(conn_name); | 112 log = logger_init(conn_name); |
| 113 host_session.log = log; | 113 host_session.log = log; |
| 114 end | 114 end |
| 115 | 115 |
| 116 attempt_connection(host_session); | 116 attempt_connection(host_session); |
