Skip to content

Commit

Permalink
removes "wall of shas"
Browse files Browse the repository at this point in the history
* temporarily set output destination for standard logger to discard before writing a remote image
* surpresses ggcr output

[buildpacks/roadmap#45]
  • Loading branch information
ekcasey committed Mar 26, 2019
1 parent 55868c9 commit ba52b1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions image/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ package image
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -258,6 +261,8 @@ func (r *remote) Save() (string, error) {
return "", err
}

log.SetOutput(ioutil.Discard)
defer log.SetOutput(os.Stdout)
if err := v1remote.Write(ref, r.Image, auth, http.DefaultTransport); err != nil {
return "", err
}
Expand Down

0 comments on commit ba52b1c

Please sign in to comment.