mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 00:02:34 +01:00
modules/m_room_create: Condition to suppress variable level log msg.
This commit is contained in:
parent
75327c19f9
commit
cf9ecb2a22
1 changed files with 8 additions and 7 deletions
|
@ -54,13 +54,14 @@ try
|
|||
log::DEBUG
|
||||
};
|
||||
|
||||
log::logf
|
||||
{
|
||||
m::log, level, "Created room %s with %s by %s",
|
||||
json::get<"room_id"_>(event),
|
||||
json::get<"sender"_>(event),
|
||||
string_view{event.event_id},
|
||||
};
|
||||
if(RB_DEBUG_LEVEL || level != log::DEBUG)
|
||||
log::logf
|
||||
{
|
||||
m::log, level, "Created room %s with %s by %s",
|
||||
json::get<"room_id"_>(event),
|
||||
json::get<"sender"_>(event),
|
||||
string_view{event.event_id},
|
||||
};
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue