fix exception logging on failed index creation
This commit is contained in:
parent
38d77f8cf3
commit
73bf371912
|
@ -193,11 +193,11 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
|
|||
}
|
||||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
logger.error("failed to create index [{}]", indexMetaData.index(), t);
|
||||
logger.error("failed to create index [{}]", t, indexMetaData.index());
|
||||
}
|
||||
});
|
||||
} catch (IOException e) {
|
||||
logger.error("failed to create index [{}]", indexMetaData.index(), e);
|
||||
logger.error("failed to create index [{}]", e, indexMetaData.index());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -162,11 +162,11 @@ public abstract class SharedStorageGateway extends AbstractLifecycleComponent<Ga
|
|||
}
|
||||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
logger.error("failed to create index [{}]", indexMetaData.index(), t);
|
||||
logger.error("failed to create index [{}]", t, indexMetaData.index());
|
||||
}
|
||||
});
|
||||
} catch (IOException e) {
|
||||
logger.error("failed to create index [{}]", indexMetaData.index(), e);
|
||||
logger.error("failed to create index [{}]", e, indexMetaData.index());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue