From 61179bf107bd4e24fd628b6bf9a503e28330782b Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 21 Oct 2022 13:53:08 +1000 Subject: Yet another attempt to sort out these log file crashes. --- apt-panopticon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 93eca85..d438889 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -1228,7 +1228,6 @@ else while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 5") end local APT_args = APT.args - local APT_logFile = APT.logFile local debians = {} local srvs = APT.readCmd('ls -1 results/*.lua') for ii,l in ipairs(srvs) do @@ -1270,6 +1269,7 @@ else end local combine = function(ip, a) + local APT_logFile = APT.logFile if not APT.logOpen(hst, ip) then print('PROBLEM OPENING LOG FILE ' .. hst .. ' ' .. ip) else @@ -1284,8 +1284,8 @@ else end APT.logPost() APT.args = APT_args - APT.logFile = APT_logFile end + APT.logFile = APT_logFile combine('', baseFiles) for ip, a in pairs(IPfiles) do if nil == a[1] then -- cgit v1.1