v1.5 - Python script appends current log

This commit is contained in:
hockeygoalie35 2024-02-13 22:55:06 -05:00
parent f417518171
commit f0fbf9b775

View file

@ -18,7 +18,7 @@ with open("/custom-services.d/ARLChecker", "r") as r:
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','') VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')
# Get current log file # Get current log file
path = '\config\logs' path = '/config/logs'
latest_file = max([os.path.join(path, f) for f in os.listdir(path) if 'ARLChecker' in f],key=os.path.getctime) latest_file = max([os.path.join(path, f) for f in os.listdir(path) if 'ARLChecker' in f],key=os.path.getctime)
# Logging Setup # Logging Setup