Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #39 from deliveroo/PRIC-2043/log-inputs
Browse files Browse the repository at this point in the history
Log the inputs which are used for a particular step.
  • Loading branch information
alexstoick authored Oct 2, 2019
2 parents 68c4f2f + 25b8db3 commit a7ef870
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/data/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"bytes"
"fmt"
"io"
"log"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -102,6 +103,11 @@ func copyPathToDestination(source S3Path, destination string, keys []string, sub

fmt.Println("Copying " + source.path + " to " + destination)
copy(session, source, destination, keys)
f, err := os.OpenFile("/data/output/inputs.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Fatal(err)
}
f.WriteString(source.path + "\n")
}

func readHEAD(session *session.Session, source S3Path) string {
Expand Down

0 comments on commit a7ef870

Please sign in to comment.