mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make sure we have a list for log_list
This commit is contained in:
parent
43facfd5b5
commit
afbeb145b6
1 changed files with 3 additions and 0 deletions
|
@ -415,6 +415,9 @@ def service_log(name, number=50):
|
|||
|
||||
log_list = services[name].get('log', [])
|
||||
|
||||
if not isinstance(log_list, list):
|
||||
log_list = [log_list]
|
||||
|
||||
# Legacy stuff related to --log_type where we'll typically have the service
|
||||
# name in the log list but it's not an actual logfile. Nowadays journalctl
|
||||
# is automatically fetch as well as regular log files.
|
||||
|
|
Loading…
Add table
Reference in a new issue