ログを日本語に修正
This commit is contained in:
parent
9175d222f2
commit
52ddbe27be
|
@ -44,17 +44,17 @@ public class TaskDataImpl implements TaskData {
|
|||
thread.start();
|
||||
return cacheWrapper.getTaskList().thenApply((taskList) -> {
|
||||
if (taskList == null) {
|
||||
logger.debug("Cache is empty");
|
||||
logger.debug("キャッシュなし");
|
||||
try { // キャッシュされた結果が存在しない場合はスレッドがサーバーから取得してくるまで待機して再取得
|
||||
logger.debug("Waiting for task list to be updated");
|
||||
logger.debug("Threadが終了して更新するまで待機中");
|
||||
thread.join();
|
||||
logger.debug("Task list updated");
|
||||
logger.debug("Threadが終了しました");
|
||||
return cacheWrapper.getTaskList().join();
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
logger.debug("Cache found");
|
||||
logger.debug("キャッシュあり: " + taskList.size() + "件");
|
||||
return taskList;
|
||||
}).join();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user