fix exception logging on failed index creation

This commit is contained in:
kimchy 2010-11-13 18:08:11 +02:00
parent 38d77f8cf3
commit 73bf371912
2 changed files with 4 additions and 4 deletions

View File

@ -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());
}
}
}

View File

@ -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());
}
}
}