Remove app_debug, unused stuff, not really relevant, now basically superseded by the new log system...

This commit is contained in:
Alexandre Aubin 2019-10-18 20:20:22 +02:00
parent e273195504
commit f5509b7be7
2 changed files with 0 additions and 30 deletions

View file

@ -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/<app>/debug
arguments:
app:
help: App name
### app_makedefault()
makedefault:
action_help: Redirect domain root to an app

View file

@ -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):
"""