egg-logger
egg-logger copied to clipboard
fix:stream unwritable(may cutting) write logger should be write into …
调整因文件切割等原因导致的日志写入异常拦截位置
Checklist
- [x]
npm testpasses - [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中拦截,避免部分日志写入时被拦截而造成日志丢失。
单测挂了
补一下复现的 testcase 吧