0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-19 19:33:45 +02:00

modules/m_room_create: Condition to suppress variable level log msg.

This commit is contained in:
Jason Volk 2020-03-16 21:27:11 -07:00
parent 75327c19f9
commit cf9ecb2a22

View file

@ -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)
{