fix:select es index key from db

Change-Id: I94c4a804004a0293959cd675f15f1c880606ca24
This commit is contained in:
jiasirui 2023-03-14 15:47:58 +08:00
parent dce44313f3
commit 9f96007ee7
2 changed files with 8 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class CustomConfigController(wsgi.Controller):
@wsgi.wrap_check_policy
def get_config(self, req):
result = dict()
result["log_save_days"] = self.config_api.get_config("log_save_days")
result["log_save_days"] = self.config_api.get_config("es_index_length")
return result
@wsgi.wrap_check_policy

View File

@ -163,7 +163,8 @@ class Service(service.Service):
for x in self.timers:
try:
x.stop()
except Exception:
except Exception as e:
LOG.error(e)
pass
self.timers = []
super(Service, self).stop()
@ -172,7 +173,8 @@ class Service(service.Service):
for x in self.timers:
try:
x.wait()
except Exception:
except Exception as e:
LOG.error(e)
pass
if self.rpcserver:
self.rpcserver.wait()
@ -312,6 +314,9 @@ def wait():
_launcher.wait()
except KeyboardInterrupt:
_launcher.stop()
except Exception as e:
LOG.error(e)
_launcher.stop()
class Launcher(object):