view mod_log_events/mod_log_events.lua @ 4777:883ad8b0a7c0

mod_http_admin_api: Export total storage use via mod_http_file_share Does not include size of other user data, chat logs etc. Uploads will likely be a significant fraction of total storage use.
author Kim Alvefur <zash@zash.se>
date Thu, 18 Nov 2021 19:28:43 +0100
parents 0e008f36a91c
children
line wrap: on
line source

module:set_global();

local helpers = require "util.helpers";

local function init(module, events, name)
	helpers.log_events(events, name, module._log);

	function module.unload()
		helpers.revert_log_events(events);
	end
end

init(module, prosody.events, "global");

function module.add_host(module)
	init(module, prosody.hosts[module.host].events, module.host);
end