aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-24 19:33:48 +1000
committeronefang2019-12-24 19:33:48 +1000
commit7fba53bf440a126b904d2dc2641f2178ed30d72c (patch)
tree633620bfc62b0f4078eac4b2d5ae31077faf2b2e
parentSlightly better forking and testing for redirection. (diff)
downloadapt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.zip
apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.tar.gz
apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.tar.bz2
apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.tar.xz
Log arguments.
Diffstat (limited to '')
-rw-r--r--apt-panopticommon.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index accfcd5..d8ab129 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -101,7 +101,9 @@ APT.options =
101 }, 101 },
102} 102}
103 103
104APT.args = {}
104APT.parseArgs = function(args) 105APT.parseArgs = function(args)
106 APT.args = args
105 local arg = {} 107 local arg = {}
106 local sendArgs = "" 108 local sendArgs = ""
107 if 0 ~= #(args) then 109 if 0 ~= #(args) then
@@ -317,6 +319,9 @@ APT.logPre = function()
317 if nil ~= APT.logFile then 319 if nil ~= APT.logFile then
318 APT.logFile:write("<html><head>\n") 320 APT.logFile:write("<html><head>\n")
319 APT.logFile:write("</head><body bgcolor='black' text='white' alink='red' link='blue' vlink='purple'>\n") 321 APT.logFile:write("</head><body bgcolor='black' text='white' alink='red' link='blue' vlink='purple'>\n")
322 APT.logFile:write("<pre>\n")
323 APT.logFile:write(APT.dumpTable(APT.args, '', 'Arguments'))
324 APT.logFile:write("</pre>\n")
320 end 325 end
321end 326end
322APT.logPost = function() 327APT.logPost = function()