Commit graph

36 commits

Author SHA1 Message Date
Kim Alvefur
98922d54b1 plugins: Prefix module imports with prosody namespace 2023-03-24 13:15:28 +01:00
Kim Alvefur
a3ea469ed9 util.id: Adjust entropy levels, with rationales
Modules using ids for logging should not need the now pretty large
medium one.
2021-12-02 01:14:55 +01:00
Matthew Wild
14967637fa mod_scansion_record: Flush after writes 2021-01-08 07:43:07 +00:00
Kim Alvefur
6c597cc8d9 mod_scansion_record: Indent stanzas in recordings
Improves readability, easier to see structure.
2020-04-12 17:30:16 +02:00
Kim Alvefur
e3164afc4a mod_scansion_record: Split stanzas into multiple lines
Not perfect but should improve readability somewhat
2018-11-12 17:15:41 +01:00
Kim Alvefur
b85188f938 mod_scansion_record: Discard from/to where these are implicitly the sessions full JID
Makes it easier to clean up recordings and change JIDs etc
2018-11-12 16:32:43 +01:00
Kim Alvefur
13d98c7080 mod_scansion_record: Record disconnection 2018-09-22 19:30:31 +02:00
Kim Alvefur
cecaab43e1 mod_scansion_record: Lower log message to 'info' level 2018-09-22 19:29:27 +02:00
Kim Alvefur
4fb620b711 mod_scansion_record: Use already composed identity string in log message 2018-09-22 19:28:52 +02:00
Kim Alvefur
7edee4c411 mod_scansion_record: Record the full identity including device name 2018-09-22 19:04:12 +02:00
Kim Alvefur
491c573ed2 mod_scansion_record: Merge header and log into one file at shutdown 2018-09-22 18:43:09 +02:00
Kim Alvefur
74ae56ade6 mod_scansion_record: Record connected clients as scansion Objects declarations 2018-09-22 18:32:22 +02:00
Kim Alvefur
61d21c9a65 mod_scansion_record: Remove unused JID mapping table [luacheck]
I have no idea what Matthew meant to use this for. Easy enough to put back.
2018-09-22 17:24:28 +02:00
Kim Alvefur
c210737024 mod_scansion_record: Close files in the cleanup stage of shutdown (fixes use after close) 2018-09-22 15:14:25 +02:00
Kim Alvefur
96e6f26aa7 mod_scansion_record: Generate a header with hostname and timestamp 2018-09-22 14:38:40 +02:00
Kim Alvefur
39c33737f0 mod_scansion_record: Open a related file for header entries
Since It's tricky to go back and insert data at the beginning of a file,
but `cat blah.sch blah.scs` ought to be fine for now.
2018-09-22 14:36:34 +02:00
Kim Alvefur
dd75571eab mod_scansion_record: Log name of scanison log on shutdown 2018-09-22 14:30:10 +02:00
Kim Alvefur
f0541eb886 mod_scansion_record: Fix missed rename of file handle 2018-09-22 14:29:39 +02:00
Kim Alvefur
26bcf9c7a7 mod_scansion_record: Split up construction of filename for reuse of parts later 2018-09-22 14:28:39 +02:00
Kim Alvefur
da949c0ec4 mod_scansion_record: Hook correct shutdown event 2018-09-22 14:27:24 +02:00
Kim Alvefur
7ee11a47ef mod_scansion_record: Avoid recording the resource binding stanza 2018-09-22 14:19:46 +02:00
Kim Alvefur
f6908980d0 mod_scansion_record: Only record stanzas in the default namespace 2018-09-22 14:19:22 +02:00
Kim Alvefur
ccd756b540 mod_scansion_record: Rename main file handle 2018-09-22 14:18:39 +02:00
Kim Alvefur
42045a538d mod_scansion_record: Record into "scansion" instead of per VirtualHost 2018-09-22 14:10:16 +02:00
Kim Alvefur
5f402060cd mod_scansion_record: Import util.filters 2018-09-22 14:08:24 +02:00
Kim Alvefur
cb0e1198a3 mod_scansion_record: Correctly retrieve resource 2018-09-22 14:07:49 +02:00
Kim Alvefur
b70932d196 mod_scansion_record: Tweak filename 2018-09-22 14:05:59 +02:00
Kim Alvefur
d43d603b11 mod_scansion_record: Record session connecting 2018-09-22 14:00:11 +02:00
Kim Alvefur
10747c00ae mod_scansion_record: Complete stanza recording functions 2018-09-22 13:58:23 +02:00
Kim Alvefur
7b3bab4806 mod_scansion_record: Remove extra " 2018-09-22 13:55:14 +02:00
Kim Alvefur
920e0d14ef mod_scansion_record: Add missing ) 2018-09-22 13:54:54 +02:00
Kim Alvefur
197f437f88 mod_scansion_record: Finish function for writing data 2018-09-22 13:53:54 +02:00
Kim Alvefur
70f86c0b66 mod_scansion_record: and close it on shutdown 2018-09-22 13:52:57 +02:00
Kim Alvefur
42adc5de68 mod_scansion_record: Open log file 2018-09-22 13:52:55 +02:00
Kim Alvefur
32684c196d mod_scansion_record: Have datamanager generate a filename for output 2018-09-22 13:51:28 +02:00
Kim Alvefur
f0d8e7a601 mod_scansion_record: Unfinished code dump from Matthew 2018-09-22 13:50:00 +02:00