From 9fdd6be3f3c78b629ffc9222608ae20f799df4ca Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 1 Apr 2015 14:31:29 +1100 Subject: [PATCH] fs: Remove noisy debug logging --- fs/torrentfs.go | 9 --------- 1 file changed, 9 deletions(-) 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 { -- 2.48.1