Skip to content

Commit

Permalink
Disable next defer function
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Alexandrov <sirakov@gmail.com>
  • Loading branch information
cupakob committed Nov 10, 2024
1 parent 59a7301 commit 0a7edf5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/test-server/kcp/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ func (s *Shard) Start(ctx context.Context, quiet bool) error {
return err
}

defer func() {
err = logFile.Close()
if err != nil {
logger.Error(err, "failed to close the log file")
}
}()
//defer func() {
// err = logFile.Close()
// if err != nil {
// logger.Error(err, "failed to close the log file")
// }
//}()

s.writer = helpers.NewHeadWriter(logFile, out)
cmd.Stdout = s.writer
Expand Down

0 comments on commit 0a7edf5

Please sign in to comment.