aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xapt-panopticon.lua10
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, ", "))