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