add logging on which state file failed to load

This commit is contained in:
kimchy 2011-01-23 02:59:42 +02:00
parent ce4f09c2b1
commit 85ee6eaf10

View File

@ -306,7 +306,7 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
this.currentMetaState = readMetaState(Streams.copyToByteArray(new FileInputStream(new File(location, "metadata-" + version))));
}
} catch (Exception e) {
logger.warn("failed to read local state", e);
logger.warn("failed to read local state (metadata)", e);
}
}
@ -317,7 +317,7 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
this.currentStartedShards = readStartedShards(Streams.copyToByteArray(new FileInputStream(new File(location, "shards-" + version))));
}
} catch (Exception e) {
logger.warn("failed to read local state", e);
logger.warn("failed to read local state (started shards)", e);
}
}
}