diff --git a/venus/modules/custom_config/controller.py b/venus/modules/custom_config/controller.py index f8d3c51..b3ea342 100644 --- a/venus/modules/custom_config/controller.py +++ b/venus/modules/custom_config/controller.py @@ -40,7 +40,7 @@ class CustomConfigController(wsgi.Controller): id = body.get("id", None) value = body.get("value", None) if id is None or value is None: - return {"code": -1, "msg": "invalid param: id and value is need"} + return {"code": -1, "msg": "invalid param: id or value is missed"} self.config_api.set_config(id, value) return {"code": 0, "msg": "OK"} diff --git a/venus/modules/search/es_template.py b/venus/modules/search/es_template.py index 65b5311..83f440f 100644 --- a/venus/modules/search/es_template.py +++ b/venus/modules/search/es_template.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -"""Implementation of Template.""" +"""Implementation of Search Template.""" def search_params(field, must_params): diff --git a/venus/task/core/delete_es_index_task.py b/venus/task/core/delete_es_index_task.py index 4bf38af..fd3ee98 100644 --- a/venus/task/core/delete_es_index_task.py +++ b/venus/task/core/delete_es_index_task.py @@ -45,7 +45,7 @@ class DeleteESIndexTask(object): LOG.error(_LE("delete es inidex:%s, catch exception:%s"), name, str(e)) - def delete_es_history_index(self): + def delete_es_outdated_index(self): len_d = self.config_api.get_config("log_save_days") if len_d is None: LOG.error(_LE("the config of log_save_days do not exist")) @@ -75,7 +75,7 @@ class DeleteESIndexTask(object): def start_task(self): try: - self.delete_es_history_index() + self.delete_es_outdated_index() LOG.info(_LI("delete es index task done")) except Exception as e: LOG.error(_LE("delete es index task, catch exception:%s"), str(e))