Move noisy logs to debug
This commit is contained in:
@@ -67,7 +67,7 @@ func DownloadAudioFiles(progressChan chan<- DownloadStatus, filenames []string,
|
|||||||
totalDownloaded := int64(0)
|
totalDownloaded := int64(0)
|
||||||
|
|
||||||
for _, filename := range filenames {
|
for _, filename := range filenames {
|
||||||
logger.Info("Downloading %s", filename)
|
logger.Debug("Downloading %s", filename)
|
||||||
destPath := filepath.Join(destDir, filename)
|
destPath := filepath.Join(destDir, filename)
|
||||||
// Check if the file already exists
|
// Check if the file already exists
|
||||||
url := urlBase + filename
|
url := urlBase + filename
|
||||||
@@ -95,7 +95,7 @@ func DownloadAudioFiles(progressChan chan<- DownloadStatus, filenames []string,
|
|||||||
if !os.IsNotExist(err) {
|
if !os.IsNotExist(err) {
|
||||||
logger.Warning("%s corrupt. Adding to download queue.", filename)
|
logger.Warning("%s corrupt. Adding to download queue.", filename)
|
||||||
} else {
|
} else {
|
||||||
logger.Info("%s not found. Adding to download queue.", filename)
|
logger.Debug("%s not found. Adding to download queue.", filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append it to the list to download
|
// Append it to the list to download
|
||||||
|
|||||||
Reference in New Issue
Block a user