Browse Source

Update manage.py

qiaofeng1227 2 years ago
parent
commit
6f7627bddb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      appmanage/api/service/manage.py

+ 2 - 0
appmanage/api/service/manage.py

@@ -105,6 +105,7 @@ def start_app(app_id):
 
 
 def stop_app(app_id):
 def stop_app(app_id):
     code, message = docker.check_app_id(app_id)
     code, message = docker.check_app_id(app_id)
+    myLogger.info_logger(message)
     if code == None:
     if code == None:
         app_name = split_app_id(app_id)
         app_name = split_app_id(app_id)
         info, flag = app_exits_in_docker(app_id)
         info, flag = app_exits_in_docker(app_id)
@@ -115,6 +116,7 @@ def stop_app(app_id):
         else:
         else:
             raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "APP is not exist", "")
             raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "APP is not exist", "")
     else:
     else:
+        myLogger.info_logger("check app failed")
         raise CommandException(code, message, "")
         raise CommandException(code, message, "")