From: Matt Joiner Date: Wed, 1 Apr 2015 03:31:29 +0000 (+1100) Subject: fs: Remove noisy debug logging X-Git-Tag: v1.0.0~1220 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9fdd6be3f3c78b629ffc9222608ae20f799df4ca;p=btrtrc.git fs: Remove noisy debug logging --- diff --git a/fs/torrentfs.go b/fs/torrentfs.go index 3ebbbf75..47fd6109 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -7,7 +7,6 @@ import ( "os" "strings" "sync" - "time" "bazil.org/fuse" fusefs "bazil.org/fuse/fs" @@ -127,17 +126,9 @@ func readFull(ctx context.Context, fs *TorrentFS, t torrent.Torrent, off int64, func (fn fileNode) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error { torrentfsReadRequests.Add(1) - started := time.Now() if req.Dir { panic("read on directory") } - defer func() { - ms := time.Now().Sub(started).Nanoseconds() / 1000000 - if ms < 20 { - return - } - log.Printf("torrentfs read took %dms", ms) - }() size := req.Size fileLeft := int64(fn.size) - req.Offset if fileLeft < 0 {