add create log file
This commit is contained in:
@@ -270,6 +270,12 @@ end
|
||||
|
||||
# Main loop: runs indefinitely every CHECK_INTERVAL_SECS
|
||||
function main_loop()
|
||||
# Ensure log file exists
|
||||
if !isfile(LogFilePath)
|
||||
open(LogFilePath, "a") do io
|
||||
# create empty file
|
||||
end
|
||||
end
|
||||
# limit log file to latest 100 events
|
||||
limitTextFileLines(LogFilePath; maxlines=100)
|
||||
thisFilePath = @__FILE__
|
||||
|
||||
Reference in New Issue
Block a user