From 77bd9ae33f961d8f7081504fb57366692b2d2fae Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 26 May 2020 04:20:56 +0200 Subject: [PATCH] Stop trying to fetch log categories that are not implemented yet T.T --- src/yunohost/log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index de84280f0..5e3a1f411 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -40,8 +40,8 @@ from moulinette.utils.filesystem import read_file, read_yaml CATEGORIES_PATH = '/var/log/yunohost/categories/' OPERATIONS_PATH = '/var/log/yunohost/categories/operation/' -CATEGORIES = ['operation', 'history', 'package', 'system', 'access', 'service', - 'app'] +#CATEGORIES = ['operation', 'history', 'package', 'system', 'access', 'service', 'app'] +CATEGORIES = ['operation'] METADATA_FILE_EXT = '.yml' LOG_FILE_EXT = '.log' RELATED_CATEGORIES = ['app', 'domain', 'group', 'service', 'user'] @@ -63,7 +63,7 @@ def log_list(category=[], limit=None, with_details=False): # In cli we just display `operation` logs by default if not categories: - categories = ["operation"] if not is_api else CATEGORIES + categories = CATEGORIES result = collections.OrderedDict() for category in categories: