diff options
| author | onefang | 2019-12-24 19:33:48 +1000 |
|---|---|---|
| committer | onefang | 2019-12-24 19:33:48 +1000 |
| commit | 7fba53bf440a126b904d2dc2641f2178ed30d72c (patch) | |
| tree | 633620bfc62b0f4078eac4b2d5ae31077faf2b2e | |
| parent | Slightly better forking and testing for redirection. (diff) | |
| download | apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.zip apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.tar.gz apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.tar.bz2 apt-panopticon-7fba53bf440a126b904d2dc2641f2178ed30d72c.tar.xz | |
Log arguments.
| -rw-r--r-- | apt-panopticommon.lua | 5 |
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 | ||
| 104 | APT.args = {} | ||
| 104 | APT.parseArgs = function(args) | 105 | APT.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 |
| 321 | end | 326 | end |
| 322 | APT.logPost = function() | 327 | APT.logPost = function() |
