# HG changeset patch # User Matthew Wild # Date 1680871589 -3600 # Node ID 7e3862a26e55fbcb76bf0c0780b65d7078f0f893 # Parent dc058fcc3fe328a7438a24624541e9a7fbe01139 mod_audit: Add 'note' column diff -r dc058fcc3fe3 -r 7e3862a26e55 mod_audit/mod_audit.lua --- a/mod_audit/mod_audit.lua Fri Apr 07 13:44:18 2023 +0100 +++ b/mod_audit/mod_audit.lua Fri Apr 07 13:46:29 2023 +0100 @@ -185,6 +185,12 @@ }); end + if arg.show_note then + table.insert(colspec, { + title = "Note", key = "note", width = "2p"; + }); + end + local row, width = require "util.human.io".table(colspec); print(string.rep("-", width)); @@ -200,6 +206,7 @@ username = user; ip = entry:get_child_text("remote-ip"); location = entry:find("location@country"); + note = entry:get_child_text("note"); })); end end