Do not close log file immediately
This commit is contained in:
parent
de3f361e51
commit
e8a446ec76
5
pew.go
5
pew.go
@ -564,7 +564,10 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
|
||||
log.Error().Err(err).Msgf("create %s", logfile)
|
||||
return
|
||||
}
|
||||
defer f.Close()
|
||||
defer func() {
|
||||
time.Sleep(time.Minute) // FIXME
|
||||
f.Close()
|
||||
}()
|
||||
|
||||
slog := zerolog.New(zerolog.MultiLevelWriter(
|
||||
&consoleWriter,
|
||||
|
Loading…
Reference in New Issue
Block a user