SOLR-6924: messageformat requires strings

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1659860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2015-02-14 21:46:08 +00:00
parent c6d2edf081
commit 02a391b284
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ public class BlobHandler extends RequestHandlerBase implements PluginInfoInitia
"size", payload.limit(), "size", payload.limit(),
"blob", payload); "blob", payload);
verifyWithRealtimeGet(blobName, version, req, doc); verifyWithRealtimeGet(blobName, version, req, doc);
log.info(MessageFormat.format("New blob inserting {0} ,size {1}, md5 {2}",doc.get("id"), payload.limit(),md5)); log.info(MessageFormat.format("inserting new blob {0} ,size {1}, md5 {2}",doc.get("id"), String.valueOf(payload.limit()),md5));
indexMap(req, rsp, doc); indexMap(req, rsp, doc);
log.info(" Successfully Added and committed a blob with id {} and size {} ",id, payload.limit()); log.info(" Successfully Added and committed a blob with id {} and size {} ",id, payload.limit());
@ -184,7 +184,7 @@ public class BlobHandler extends RequestHandlerBase implements PluginInfoInitia
} else { } else {
throw new SolrException(SolrException.ErrorCode.NOT_FOUND, throw new SolrException(SolrException.ErrorCode.NOT_FOUND,
MessageFormat.format("Invalid combination of blobName {0} and version {1}", blobName,version)); MessageFormat.format("Invalid combination of blobName {0} and version {1}", blobName,String.valueOf(version)));
} }
} }