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:
parent
b3038fa5e7
commit
0841b44534
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue