mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/m_presence: Promote the log message facility.
This commit is contained in:
parent
e6888779c9
commit
5c2b31f93d
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue