os/command: When RunWithValue method executes RunWithValueError, logging asynchronously, using Fatal cannot record the error #4146
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
Go version
go1.23.5
GoFrame version
2.8.3
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
当命令程序启动时报panic,RunWithValue执行RunWithValueError返回错误,使用fatal打印日志,并且是异步打日志的时候,因为是起goroutine执行,还没等执行完,Fatal就退出了。导致看不到任何信息。
What did you see happen?
程序报panic,却看不到任何日志,进程退出。
What did you expect to see?
看到错误信息好排查原因。
The text was updated successfully, but these errors were encountered: