mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
array for the admin panel
This commit is contained in:
parent
a2935dc44b
commit
6d76ef95f4
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ def service_log(name, number=50):
|
||||||
for log_path in log_list:
|
for log_path in log_list:
|
||||||
# log is a file, read it
|
# log is a file, read it
|
||||||
if log_path == "systemd":
|
if log_path == "systemd":
|
||||||
result[log_path] = _get_journalctl_logs(name, int(number))
|
result[log_path] = _get_journalctl_logs(name, int(number)).splitlines()
|
||||||
continue
|
continue
|
||||||
elif not os.path.isdir(log_path):
|
elif not os.path.isdir(log_path):
|
||||||
result[log_path] = _tail(log_path, int(number)) if os.path.exists(log_path) else []
|
result[log_path] = _tail(log_path, int(number)) if os.path.exists(log_path) else []
|
||||||
|
|
Loading…
Add table
Reference in a new issue