mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add logs to torrent watcher
This commit is contained in:
@@ -143,12 +143,20 @@ func watchTDir(dir string) {
|
|||||||
tor.Drop()
|
tor.Drop()
|
||||||
os.Remove(filename)
|
os.Remove(filename)
|
||||||
time.Sleep(time.Second)
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user