Fix panic when closing Box before Start with file log output

This commit is contained in:
世界
2025-12-26 15:58:13 +08:00
parent b15fecf992
commit fe632ef3ff
+1
View File
@@ -40,6 +40,7 @@ func New(options Options) (Factory, error) {
case "stdout":
logWriter = os.Stdout
default:
logWriter = io.Discard
logFilePath = logOptions.Output
}
logFormatter := Formatter{