egg-logger icon indicating copy to clipboard operation
egg-logger copied to clipboard

fix:stream unwritable(may cutting) write logger should be write into …

Open BubbleM opened this issue 6 years ago • 2 comments

调整因文件切割等原因导致的日志写入异常拦截位置

Checklist
  • [x] npm test passes
  • [x] tests and/or benchmarks are included
  • [x] documentation is changed or added
  • [x] commit message follows commit guidelines
Affected core subsystem(s)
Description of change

调整因文件切割等原因导致的日志写入异常拦截位置。 如果当前因文件切割导致stream.writable为false,那么此时的日志应该是可正常写入内存的,不应该在log中拦截,而是在write中拦截,避免部分日志写入时被拦截而造成日志丢失。

BubbleM avatar Sep 27 '19 02:09 BubbleM

单测挂了

atian25 avatar Sep 27 '19 02:09 atian25

补一下复现的 testcase 吧

mansonchor avatar Feb 22 '21 02:02 mansonchor