- log.SetFlags(log.LstdFlags | log.Llongfile)
- var err error
- pkgTempDir, err = ioutil.TempDir("", "torrent.test")
- if err != nil {
- panic(err)
- }
-}
-
-func tempDir() string {
- ret, err := ioutil.TempDir(pkgTempDir, "")
- if err != nil {
- panic(err)
- }
- return ret
+ log.SetFlags(log.LstdFlags | log.Lshortfile)
+ analog.DefaultTimeFormatter = analog.TimeFormatSecondsSinceInit