X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=main_test.go;h=578d992178d744a4d892bd692f7114a13a8477c4;hb=HEAD;hp=b6e46230956b125187b093c924a74f2d7983f404;hpb=0dbb943bc7389789c4b06a958fa908f99df409da;p=btrtrc.git diff --git a/main_test.go b/main_test.go index b6e46230..578d9921 100644 --- a/main_test.go +++ b/main_test.go @@ -1,10 +1,19 @@ package torrent import ( + "log" "os" "testing" + + _ "github.com/anacrolix/envpprof" + analog "github.com/anacrolix/log" ) +func init() { + log.SetFlags(log.LstdFlags | log.Lshortfile) + analog.DefaultTimeFormatter = analog.TimeFormatSecondsSinceInit +} + func TestMain(m *testing.M) { code := m.Run() // select {}