Changeset

9365:acb316319dc0

mod_scansion_record: Generate a header with hostname and timestamp
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 14:38:40 +0200
parents 9364:62f9127ab493
children 9366:9472b4044fc6
files plugins/mod_scansion_record.lua
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua	Sat Sep 22 14:36:34 2018 +0200
+++ b/plugins/mod_scansion_record.lua	Sat Sep 22 14:38:40 2018 +0200
@@ -6,6 +6,7 @@
 
 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 @@
 	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()