Open lorenzo-frittoli opened 4 months ago
Thx for the fixes. Also I had logfile is nil error on line 92 - in logging.lua.
the fix is just to check if log file exist...:
if logfile then
logfile:write(table.concat(parts, " "), "\n")
logfile:flush()
end
I guess something is not working with the logfile..
I am not sure of the specifics, but in
util.lua
, at line 318, the functionM.tbl_flatten(t)
is incorrect. I have found the following fix, if anyone needs it:upon fixing this, I found out another error: in
logging.lua
at line 54: if no log file is present, the program will error. This is apparently intended behavior since the file opening operation is wrapped in an assert block. I am not sure why that is the case, but for my purposes, the logger is not too important, so I just chose to remove the assert, thus creating a new log file if none is present.Sorry if I didn't quite follow standard procedure (eg: make a pr, reference files properly) but I am still getting the hang of github. Have a nice day!