Log the file name for which checksum can't be read

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-04-02 05:29:22 +00:00
parent 26c1920bfc
commit 658a131002
1 changed files with 2 additions and 2 deletions

View File

@ -462,7 +462,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
long checksum = CodecUtil.retrieveChecksum(in);
fileMeta.put(CHECKSUM, checksum);
} catch(Exception e) {
LOG.warn("Could not read checksum from index file.", e);
LOG.warn("Could not read checksum from index file: " + file, e);
}
}
@ -480,7 +480,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
try {
fileMeta.put(CHECKSUM, CodecUtil.retrieveChecksum(in));
} catch(Exception e) {
LOG.warn("Could not read checksum from index file.", e);
LOG.warn("Could not read checksum from index file: " + infos.getSegmentsFileName(), e);
}
}
}