mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +01:00
modules/m_listen: Add log notice for configured listeners.
This commit is contained in:
parent
51dd6bfa05
commit
2498b7cd00
1 changed files with 13 additions and 1 deletions
|
@ -219,7 +219,19 @@ load_listener(const m::event &event)
|
|||
json::get<"content"_>(event)
|
||||
};
|
||||
|
||||
return load_listener(name, opts);
|
||||
if(!load_listener(name, opts))
|
||||
return false;
|
||||
|
||||
log::notice
|
||||
{
|
||||
"Listener '%s' configured for %s:%s by %s",
|
||||
name,
|
||||
opts["host"],
|
||||
opts["port"],
|
||||
string_view{event.event_id},
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
ctx::context
|
||||
|
|
Loading…
Add table
Reference in a new issue