提交 9dcd3c74 编写于 作者: A adamni135 提交者: wu-sheng

write file unwait (#4099)

上级 d7f7799c
......@@ -212,15 +212,11 @@ public class FileWriter implements IWriter {
}
/**
* Write log to the queue. W/ performance trade off, set 2ms timeout for the log OP.
* Write log to the queue. W/ performance trade off.
*
* @param message to log
*/
@Override public void write(String message) {
try {
logBuffer.offer(message, 2, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
logBuffer.offer(message);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册