]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Start using new log package
[btrtrc.git] / client.go
index 95d348f8e6d1a7bddf50fabcb6092467e7fa4572..689386cd05e15fe086159d04b5a042a8376f1d11 100644 (file)
--- a/client.go
+++ b/client.go
@@ -8,13 +8,14 @@ import (
        "expvar"
        "fmt"
        "io"
-       "log"
        "net"
        "net/url"
        "strconv"
        "strings"
        "time"
 
+       "github.com/anacrolix/log"
+
        "github.com/anacrolix/dht"
        "github.com/anacrolix/dht/krpc"
        "github.com/anacrolix/missinggo"
@@ -1040,6 +1041,7 @@ func (cl *Client) newTorrent(ih metainfo.Hash, specStorage storage.ClientImpl) (
                        L: &cl.mu,
                },
        }
+       t.logger = log.Default.Clone().AddValue(t)
        t.setChunkSize(defaultChunkSize)
        return
 }