From 235c67a6ec39b17ae1fca44c40d8b683cd0cfb26 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 1 Jun 2020 11:12:51 +1000 Subject: [PATCH] Remove debug logging from storage file implementation --- storage/file.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/storage/file.go b/storage/file.go index 0a4143a4..6dc3aeeb 100644 --- a/storage/file.go +++ b/storage/file.go @@ -2,7 +2,6 @@ package storage import ( "io" - "log" "os" "path/filepath" @@ -176,7 +175,7 @@ func (fst fileTorrentImplIO) ReadAt(b []byte, off int64) (n int, err error) { } func (fst fileTorrentImplIO) WriteAt(p []byte, off int64) (n int, err error) { - log.Printf("write at %v: %v bytes", off, len(p)) + //log.Printf("write at %v: %v bytes", off, len(p)) fst.fts.segmentLocater.Locate(segments.Extent{off, int64(len(p))}, func(i int, e segments.Extent) bool { name := fst.fts.fileInfoName(fst.fts.upvertedFiles[i]) os.MkdirAll(filepath.Dir(name), 0777) @@ -187,7 +186,7 @@ func (fst fileTorrentImplIO) WriteAt(p []byte, off int64) (n int, err error) { } var n1 int n1, err = f.WriteAt(p[:e.Length], e.Start) - log.Printf("%v %v wrote %v: %v", i, e, n1, err) + //log.Printf("%v %v wrote %v: %v", i, e, n1, err) closeErr := f.Close() n += n1 p = p[n1:] -- 2.48.1