fix log store days as str
Change-Id: Iba4b68fcc8f997e0c02cf10882bbb10b32f96474
This commit is contained in:
parent
aa9759b056
commit
650ebbb269
@ -51,7 +51,7 @@ class DeleteESIndexTask(object):
|
||||
LOG.error(_LE("the config of log_save_days do not exist"))
|
||||
return
|
||||
|
||||
LOG.info(_LI("elasticsearch indexes(log) save days: %d"), len_d)
|
||||
LOG.info(_LI("elasticsearch indexes(log) save days: %s"), len_d)
|
||||
today = time.strftime('%Y-%m-%d')
|
||||
try:
|
||||
indexes_array = self.search_lib.get_all_index()
|
||||
|
@ -31,4 +31,4 @@ def init_advanced_timer():
|
||||
|
||||
def add_jobs():
|
||||
sched.add_job(adapter.delete_es_index_job, TRIGGER_INTERVAL,
|
||||
seconds=300, id='delete_es_index_job')
|
||||
seconds=60, id='delete_es_index_job')
|
||||
|
Loading…
Reference in New Issue
Block a user