0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-16 09:36:54 +01:00

modules/m_presence: Fix logger target for various messages.

This commit is contained in:
Jason Volk 2019-04-05 14:05:58 -07:00
parent b3038fa5e7
commit 0841b44534

View file

@ -73,7 +73,7 @@ catch(const std::exception &e)
{ {
log::derror log::derror
{ {
m::log, "Presence from %s :%s", presence_log, "Presence from %s :%s",
json::get<"origin"_>(event), json::get<"origin"_>(event),
e.what(), e.what(),
}; };
@ -93,7 +93,7 @@ try
{ {
log::dwarning log::dwarning
{ {
m::log, "Ignoring %s from %s for user %s", presence_log, "Ignoring %s from %s for user %s",
at<"type"_>(event), at<"type"_>(event),
at<"origin"_>(event), at<"origin"_>(event),
string_view{user_id} string_view{user_id}
@ -197,7 +197,7 @@ catch(const m::error &e)
{ {
log::error log::error
{ {
m::log, "Presence from %s :%s :%s", presence_log, "Presence from %s :%s :%s",
json::get<"origin"_>(event), json::get<"origin"_>(event),
e.what(), e.what(),
e.content e.content