Skip to content

Commit 44d0a1e

Browse files
committed
log instead
1 parent f0ebc37 commit 44d0a1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/checkpointer/checkpointer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ func (c *checkpointer) Restore(ctx context.Context) (*exec.Cmd, func(context.Con
190190
callback := func(con context.Context) error {
191191
out, err := exec.CommandContext(con, "ps", "aux").Output()
192192
if err != nil {
193-
fmt.Println(err.Error())
193+
c.log.Infow(err.Error())
194194
}
195-
fmt.Println(out)
196-
fmt.Println(strconv.Itoa(restoreCmd.Process.Pid))
195+
c.log.Infow(string(out))
196+
c.log.Infow(strconv.Itoa(restoreCmd.Process.Pid))
197197
// Toggle CUDA on for the restored process
198198
cmd := exec.CommandContext(con, cudaCheckpointPath, "--toggle", "--pid", strconv.Itoa(restoreCmd.Process.Pid))
199199
cmd.Stdout = os.Stdout

0 commit comments

Comments
 (0)