Add some logging for added initial files
This commit is contained in:
parent
3299e329db
commit
291967610a
1 changed files with 3 additions and 1 deletions
|
@ -297,12 +297,14 @@ func (q *Queue) Run(stop <-chan bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, file := range files {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fullPath := filepath.Join(localPath, file.Name())
|
fullPath := filepath.Join(localPath, file.Name())
|
||||||
|
|
||||||
|
q.logger.Printf("Adding %s to download queue", fullPath)
|
||||||
err = q.addTorrentFilePath(fullPath)
|
err = q.addTorrentFilePath(fullPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
q.logger.Printf("Failed to add torrent at '%s' error '%s'", fullPath, err)
|
q.logger.Printf("Failed to add torrent at '%s' error '%s'", fullPath, err)
|
||||||
|
|
Loading…
Reference in a new issue