diff --git a/frigate/api/app.py b/frigate/api/app.py index 787a087844..139b10d5b6 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -481,9 +481,13 @@ def logs(service: str): for rawLine in contents.splitlines(): cleanLine = rawLine.strip() - if len(cleanLine) < 10 or " " not in cleanLine: + if len(cleanLine) < 10: continue + # handle cases where S6 does not include date in log line + if " " not in cleanLine: + cleanLine = f"{datetime.now()} {cleanLine}" + if dateEnd == 0: dateEnd = cleanLine.index(" ") keyLength = dateEnd - (6 if service_location == "frigate" else 0)