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