From f52f81cba64e4618e79dc655c6ef31590a10314b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 25 Jul 2018 16:38:01 +0000 Subject: [PATCH] Fix _tail function, hopefully that's the right fix --- src/yunohost/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/yunohost/service.py b/src/yunohost/service.py index 21b74c559..b5a7a5c11 100644 --- a/src/yunohost/service.py +++ b/src/yunohost/service.py @@ -745,7 +745,8 @@ def _tail(file, n): previous_log_file = _find_previous_log_file(file) if previous_log_file is not None: lines = _tail(previous_log_file, to_read - len(lines)) + lines - return lines[-to_read:offset and -offset or None] + + return lines def _find_previous_log_file(file):