utils.Debugf -> fmt.Printf
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
parent
07cec009c8
commit
241c9b56dd
1 changed files with 3 additions and 3 deletions
|
@ -7,11 +7,11 @@ import (
|
|||
"encoding/hex"
|
||||
"hash"
|
||||
"io"
|
||||
"log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/docker/utils"
|
||||
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
|
||||
)
|
||||
|
||||
|
@ -170,11 +170,11 @@ func (ts *TarSum) Sum(extra []byte) string {
|
|||
h.Write(extra)
|
||||
}
|
||||
for _, sum := range sums {
|
||||
utils.Debugf("-->%s<--", sum)
|
||||
log.Printf("-->%s<--", sum)
|
||||
h.Write([]byte(sum))
|
||||
}
|
||||
checksum := "tarsum+sha256:" + hex.EncodeToString(h.Sum(nil))
|
||||
utils.Debugf("checksum processed: %s", checksum)
|
||||
log.Printf("checksum processed: %s", checksum)
|
||||
return checksum
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue