mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix _tail function, hopefully that's the right fix
This commit is contained in:
parent
8eaceefbbd
commit
f52f81cba6
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue