aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 14:38:40 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 14:38:40 +0200
commit96e6f26aa77d3787631eff67efd4675ec2a2ab67 (patch)
tree90abc2ae02acd3fe81d4cc3d4db95e2a740d868f /plugins
parent39c33737f0af2b8be3610077a5e06a5281928ecb (diff)
downloadprosody-96e6f26aa77d3787631eff67efd4675ec2a2ab67.tar.gz
prosody-96e6f26aa77d3787631eff67efd4675ec2a2ab67.zip
mod_scansion_record: Generate a header with hostname and timestamp
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_scansion_record.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua
index 6e93aead..ee967271 100644
--- a/plugins/mod_scansion_record.lua
+++ b/plugins/mod_scansion_record.lua
@@ -6,6 +6,7 @@ local full_jids = {};
local filters = require "util.filters";
local id = require "util.id";
+local dt = require "util.datetime";
local dm = require "util.datamanager";
local record_id = id.medium():lower();
@@ -77,7 +78,15 @@ module:hook("resource-bind", function (event)
filters.add_filter(session, "stanzas/out", record_stanza_out);
end);
+record_header("# mod_scansion_record on host '"..module.host.."' recording started "..dt.datetime().."\n\n");
+
+record[[
+-----
+
+]]
+
module:hook_global("server-stopping", function ()
+ record("# recording ended on "..dt.datetime().."\n");
module:log("info", "Scansion recording available in %s", record_file);
scan:close();
head:close()