0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

modules/m_presence: Promote the log message facility.

This commit is contained in:
Jason Volk 2018-04-12 01:12:02 -07:00
parent e6888779c9
commit 5c2b31f93d

View file

@ -97,14 +97,13 @@ handle_edu_m_presence_(const m::event &event,
m::presence::set(object)
};
log::debug
log::info
{
"%s | %s %s [%s] %zd seconds ago => %s",
"%s %s is %s and %s %zd seconds ago",
at<"origin"_>(event),
string_view{user_id},
presence,
json::get<"currently_active"_>(object)? "active"_sv : "inactive"_sv,
json::get<"last_active_ago"_>(object) / 1000L,
string_view{evid}
presence,
json::get<"last_active_ago"_>(object) / 1000L
};
}