Closed sunny6chen closed 2 weeks ago
系统信息:MACOS 版本:nb-log= "~=12.3"
日志: --- Logging error --- Traceback (most recent call last): File "/nb_log/handlers.py", line 684, in emit self.fp.write(msg + '\n') ValueError: I/O operation on closed file.
日志写入进去没?
这个应该没影响吧,你按了ctrl c 或者代码异常结束,不影响写入日志
没有写入到日志文件内, 这是在fastapi的RequestRoute方法内,记录请求日志时,出现的错误
你用hanlder 6试试呢
其它type没问题,就2会出现上方错误
系统信息:MACOS 版本:nb-log= "~=12.3"
日志: --- Logging error --- Traceback (most recent call last): File "/nb_log/handlers.py", line 684, in emit self.fp.write(msg + '\n') ValueError: I/O operation on closed file.