From d45e3d928854d7699b2282002c904b555e26fe43 Mon Sep 17 00:00:00 2001 From: yourok <8yourok8@mail.ru> Date: Fri, 14 Feb 2020 13:07:02 +0300 Subject: [PATCH] fmt -> log --- src/server/torr/storage/memcache/Cache.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/torr/storage/memcache/Cache.go b/src/server/torr/storage/memcache/Cache.go index ac59fd0..b6c98c7 100644 --- a/src/server/torr/storage/memcache/Cache.go +++ b/src/server/torr/storage/memcache/Cache.go @@ -1,7 +1,7 @@ package memcache import ( - "fmt" + "log" "sort" "sync" @@ -53,7 +53,7 @@ func NewCache(capacity int64, storage *Storage) *Cache { } func (c *Cache) Init(info *metainfo.Info, hash metainfo.Hash) { - fmt.Println("Create cache for:", info.Name) + log.Println("Create cache for:", info.Name) if c.capacity == 0 { c.capacity = info.PieceLength * 6 } @@ -90,7 +90,7 @@ func (c *Cache) Piece(m metainfo.Piece) storage.PieceImpl { func (c *Cache) Close() error { c.isRemove = false - fmt.Println("Close cache for:", c.hash) + log.Println("Close cache for:", c.hash) if _, ok := c.s.caches[c.hash]; ok { delete(c.s.caches, c.hash) }