Fix panic when closing Box before Start with file log output
This commit is contained in:
parent
78b4eac974
commit
bf4a9edc89
1 changed files with 1 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ func New(options Options) (Factory, error) {
|
||||||
case "stdout":
|
case "stdout":
|
||||||
logWriter = os.Stdout
|
logWriter = os.Stdout
|
||||||
default:
|
default:
|
||||||
|
logWriter = io.Discard
|
||||||
logFilePath = logOptions.Output
|
logFilePath = logOptions.Output
|
||||||
}
|
}
|
||||||
logFormatter := Formatter{
|
logFormatter := Formatter{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue