Mic-M/iobroker-logfile-script

file not found error if script is executed at midnight or right after

Mic-M opened this issue · 1 comments

Mic-M commented

If the schedule is set to e.g. every two minutes, then we will miss the log between 23:58 and 0:00 since a new log file will be created at midnight. This can also cause a "file not found" error if the script is executed right at midnight.

Possible solutions:

  • 0:00 + x minutes -> also retrieve the log file contents of the previous day, OR
  • Change schedules, e.g.: schedule #1 to just run between 0:02 and 0:57. Schedule #2 to run at 0:59:50.
Mic-M commented

File not found error fixed with version 0.8.

Opened GitHub issue #3 for the other issue.