diff options
author | onefang | 2019-12-24 15:08:42 +1000 |
---|---|---|
committer | onefang | 2019-12-24 15:08:42 +1000 |
commit | 7f6da17255ba90e3f7609eeeaff360d8b107cd3e (patch) | |
tree | 4f3de4864a38327fcb9af0cf5ec5f8e20754f717 | |
parent | Better handling of redirects to different hosts. (diff) | |
download | apt-panopticon-7f6da17255ba90e3f7609eeeaff360d8b107cd3e.zip apt-panopticon-7f6da17255ba90e3f7609eeeaff360d8b107cd3e.tar.gz apt-panopticon-7f6da17255ba90e3f7609eeeaff360d8b107cd3e.tar.bz2 apt-panopticon-7f6da17255ba90e3f7609eeeaff360d8b107cd3e.tar.xz |
Better log file names for IPs and files.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 81fd281..0d866d3 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -915,11 +915,11 @@ if 0 < #arg then | |||
915 | 915 | ||
916 | if APT.origin or APT.redir then APT.results["IPs"] = gatherIPs(pu.host) end | 916 | if APT.origin or APT.redir then APT.results["IPs"] = gatherIPs(pu.host) end |
917 | 917 | ||
918 | if nil ~= arg[2] then | 918 | local logname = pu.host |
919 | APT.logFile, e = io.open("results/LOG_" .. pu.host .. "_" .. arg[2] .. ".html", "a+") | 919 | if nil ~= arg[2] then logname = logname .. "_" .. arg[2] end |
920 | else | 920 | if nil ~= arg[3] then logname = logname .. "_" .. arg[3] end |
921 | APT.logFile, e = io.open("results/LOG_" .. pu.host .. ".html", "a+") | 921 | if APT.checkFile("results/LOG_" .. logname .. ".html") then return end |
922 | end | 922 | APT.logFile, e = io.open("results/LOG_" .. logname .. ".html", "a+") |
923 | if nil == APT.logFile then C("opening log file - " .. e); return end | 923 | if nil == APT.logFile then C("opening log file - " .. e); return end |
924 | APT.logPre() | 924 | APT.logPre() |
925 | I("Starting tests for " .. arg[1] .. " with these tests - " .. table.concat(APT.options.tests.value, ", ")) | 925 | I("Starting tests for " .. arg[1] .. " with these tests - " .. table.concat(APT.options.tests.value, ", ")) |