Add some logging for added initial files

This commit is contained in:
Tony Blyler 2016-05-13 18:32:04 -04:00
parent 3299e329db
commit 291967610a
No known key found for this signature in database
GPG key ID: 25C9D3A655D1A65C

View file

@ -297,12 +297,14 @@ func (q *Queue) Run(stop <-chan bool) {
}
for _, file := range files {
if file.IsDir() {
// skip directories or files that do not end with .torrent
if file.IsDir() || !strings.HasSuffix(file.Name(), ".torrent") {
continue
}
fullPath := filepath.Join(localPath, file.Name())
q.logger.Printf("Adding %s to download queue", fullPath)
err = q.addTorrentFilePath(fullPath)
if err != nil {
q.logger.Printf("Failed to add torrent at '%s' error '%s'", fullPath, err)