From f5509b7be762f7f0fbdcf19adeef74b4f42a2aa8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 18 Oct 2019 20:20:22 +0200 Subject: [PATCH] Remove app_debug, unused stuff, not really relevant, now basically superseded by the new log system... --- data/actionsmap/yunohost.yml | 8 -------- src/yunohost/app.py | 22 ---------------------- 2 files changed, 30 deletions(-) diff --git a/data/actionsmap/yunohost.yml b/data/actionsmap/yunohost.yml index 22037f05f..400599c48 100644 --- a/data/actionsmap/yunohost.yml +++ b/data/actionsmap/yunohost.yml @@ -754,14 +754,6 @@ app: full: --sql help: Initial SQL file - ### app_debug() - debug: - action_help: Display all debug informations for an application - api: GET /apps//debug - arguments: - app: - help: App name - ### app_makedefault() makedefault: action_help: Redirect domain root to an app diff --git a/src/yunohost/app.py b/src/yunohost/app.py index f4c504505..d8715b278 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1253,28 +1253,6 @@ def app_clearaccess(apps): return {'allowed_users': output} -def app_debug(app): - """ - Display debug informations for an app - - Keyword argument: - app - """ - manifest = _get_manifest_of_app(os.path.join(APPS_SETTING_PATH, app)) - - return { - 'name': manifest['id'], - 'label': manifest['name'], - 'services': [{ - "name": x, - "logs": [{ - "file_name": y, - "file_content": "\n".join(z), - } for (y, z) in sorted(service_log(x).items(), key=lambda x: x[0])], - } for x in sorted(manifest.get("services", []))] - } - - @is_unit_operation() def app_makedefault(operation_logger, app, domain=None): """