mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
core.statsmanager: Do a final collection on shutdown
This commit is contained in:
parent
19d302f3c4
commit
54bfc5180f
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ if stats then
|
|||
end
|
||||
timer.add_task(stats_interval, collect);
|
||||
prosody.events.add_handler("server-started", function () collect() end, -1);
|
||||
prosody.events.add_handler("server-stopped", function () collect() end, -1);
|
||||
else
|
||||
log("debug", "Statistics enabled using %s provider, collection is disabled", stats_provider_name);
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue