mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
modules/client/rooms/invite: Fix log namespace; fix use after move; add debuglog.
This commit is contained in:
parent
2eb5300713
commit
9db5919d6c
1 changed files with 10 additions and 3 deletions
|
@ -205,6 +205,13 @@ try
|
||||||
room_id, event_id, proto, buf, std::move(opts)
|
room_id, event_id, proto, buf, std::move(opts)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
log::debug
|
||||||
|
{
|
||||||
|
m::log, "Sending invite %s to %s",
|
||||||
|
string_view{event.event_id},
|
||||||
|
target.host(),
|
||||||
|
};
|
||||||
|
|
||||||
http::code rcode; try
|
http::code rcode; try
|
||||||
{
|
{
|
||||||
request.wait(seconds(invite_remote_timeout));
|
request.wait(seconds(invite_remote_timeout));
|
||||||
|
@ -214,9 +221,9 @@ try
|
||||||
{
|
{
|
||||||
log::error
|
log::error
|
||||||
{
|
{
|
||||||
"Invite %s to %s :%s :%s",
|
m::log, "Invite %s to %s :%s :%s",
|
||||||
string_view{event.event_id},
|
string_view{event.event_id},
|
||||||
string(opts.remote),
|
target.host(),
|
||||||
e.what(),
|
e.what(),
|
||||||
e.content,
|
e.content,
|
||||||
};
|
};
|
||||||
|
@ -273,7 +280,7 @@ catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
log::error
|
log::error
|
||||||
{
|
{
|
||||||
"Invite remote %s :%s",
|
m::log, "Invite remote %s :%s",
|
||||||
string_view{event.event_id},
|
string_view{event.event_id},
|
||||||
e.what(),
|
e.what(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue