This commit is contained in:
igarashi 2020-04-10 15:02:31 +09:00
parent 338be397ed
commit 26d1b23d2f
2 changed files with 4 additions and 4 deletions

View file

@ -189,7 +189,7 @@ public class EsApiManager extends BaseApiManager {
} catch (final ClientAbortException e) {
logger.debug("Client aborts this request.", e);
} catch (final IOException e) {
logger.error("Failed to read {} from {}",path, filePath);
logger.error("Failed to read {} from {}", path, filePath);
throw new WebApiException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e);
}
}

View file

@ -79,10 +79,10 @@ public class IndexingHelper {
if (logger.isInfoEnabled()) {
if (docList.getContentSize() > 0) {
logger.info("Sent {} docs (Doc:{process {}ms, send {}ms, size {}}, {})", docList.size(), docList.getProcessingTime(),
(System.currentTimeMillis() - execTime),
MemoryUtil.byteCountToDisplaySize(docList.getContentSize()), MemoryUtil.getMemoryUsageLog());
(System.currentTimeMillis() - execTime), MemoryUtil.byteCountToDisplaySize(docList.getContentSize()),
MemoryUtil.getMemoryUsageLog());
} else {
logger.info("Sent {} docs (Doc:{send {}ms}, {})", docList.size(),(System.currentTimeMillis() - execTime),
logger.info("Sent {} docs (Doc:{send {}ms}, {})", docList.size(), (System.currentTimeMillis() - execTime),
MemoryUtil.getMemoryUsageLog());
}
}