fixed error output of parsing migration config

This commit is contained in:
liugq 2023-02-08 11:37:33 +08:00
parent aaf0822593
commit 6bcca588cb
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ func (module *Module) Name() string {
func (module *Module) Setup() {
module.BulkResultIndexName = ".infini_async_bulk_results"
_, err := env.ParseConfig("migration", module)
if err != nil {
exists, err := env.ParseConfig("migration", module)
if exists && err != nil {
log.Error(err)
}
InitAPI(module.BulkResultIndexName)