mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Remove app_debug, unused stuff, not really relevant, now basically superseded by the new log system...
This commit is contained in:
parent
e273195504
commit
f5509b7be7
2 changed files with 0 additions and 30 deletions
|
@ -754,14 +754,6 @@ app:
|
||||||
full: --sql
|
full: --sql
|
||||||
help: Initial SQL file
|
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()
|
### app_makedefault()
|
||||||
makedefault:
|
makedefault:
|
||||||
action_help: Redirect domain root to an app
|
action_help: Redirect domain root to an app
|
||||||
|
|
|
@ -1253,28 +1253,6 @@ def app_clearaccess(apps):
|
||||||
return {'allowed_users': output}
|
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()
|
@is_unit_operation()
|
||||||
def app_makedefault(operation_logger, app, domain=None):
|
def app_makedefault(operation_logger, app, domain=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue