add logs to torrent watcher

This commit is contained in:
yourok
2023-11-08 09:25:52 +03:00
parent 9465752988
commit 90c5679cb8

View File

@@ -143,12 +143,20 @@ func watchTDir(dir string) {
tor.Drop()
os.Remove(filename)
time.Sleep(time.Second)
} else {
log.TLogln("Error get info from torrent")
}
} else {
log.TLogln("Error parse torrent file:", err)
}
} else {
log.TLogln("Error parse file name:", err)
}
}
}
} else {
log.TLogln("Error read dir:", err)
}
time.Sleep(time.Second)
time.Sleep(time.Second * 5)
}
}