clean up log fmt usage. Move to log for important data changes,

warnings.
This commit is contained in:
Chris Lu
2013-07-13 19:44:24 -07:00
parent ae3245f1dc
commit ac15868694
10 changed files with 40 additions and 41 deletions

View File

@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io"
"log"
"os"
)
@@ -26,7 +27,7 @@ func (n *Needle) Append(w io.Writer, version Version) (size uint32, err error) {
defer func(s io.Seeker, off int64) {
if err != nil {
if _, e = s.Seek(off, 0); e != nil {
fmt.Printf("Failed to seek %s back to %d with error: %s\n", w, off, e)
log.Printf("Failed to seek %s back to %d with error: %s\n", w, off, e)
}
}
}(s, end)