]> Sergey Matveev's repositories - btrtrc.git/blobdiff - testing.go
fs: Update path to torrentfs
[btrtrc.git] / testing.go
index 684b2eb75c8403d2e6759dce985a4a08eae6f970..d3f04b669e8c679da3df629b2bdb7294d4661afc 100644 (file)
@@ -5,6 +5,7 @@ import (
        "time"
 
        "github.com/anacrolix/log"
+
        pp "github.com/anacrolix/torrent/peer_protocol"
 )
 
@@ -19,7 +20,7 @@ func TestingConfig(t testing.TB) *ClientConfig {
        cfg.ListenPort = 0
        cfg.KeepAliveTimeout = time.Millisecond
        cfg.MinPeerExtensions.SetBit(pp.ExtensionBitFast, true)
-       cfg.Logger = log.Default.WithNames(t.Name())
+       cfg.Logger = log.Default.WithContextText(t.Name())
        //cfg.Debug = true
        //cfg.Logger = cfg.Logger.WithText(func(m log.Msg) string {
        //      t := m.Text()