Skip to content

Commit

Permalink
Try next 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 12, 2024
1 parent 372fa51 commit b6c0ed9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/sharded-test-server/virtual.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ func (v *VirtualWorkspace) start(ctx context.Context) error {
return err
}

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

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

0 comments on commit b6c0ed9

Please sign in to comment.