@@ -79,7 +79,7 @@ func Monitor(tracks []*models.Track,
7979
8080 if fileStatus .BytesRemaining == 0 || fileStatus .PercentComplete == 100 || strings .Contains (fileStatus .State , "Succeeded" ) {
8181 track .Present = true
82- log .Printf ("[slskd ] %s downloaded successfully" , track .File )
82+ log .Printf ("[monitor ] %s downloaded successfully" , track .File )
8383 file , path := parsePath (track .File )
8484 if cfg .MigrateDownload {
8585 if err = moveDownload (cfg .FromDir , cfg .ToDir , path , file ); err != nil {
@@ -97,11 +97,11 @@ func Monitor(tracks []*models.Track,
9797 } else if fileStatus .BytesTransferred > tracker .LastBytesTransferred {
9898 tracker .LastBytesTransferred = fileStatus .BytesTransferred
9999 tracker .LastUpdated = currentTime
100- log .Printf ("[slskd ] progress updated for %s: %d bytes transferred" , track .File , fileStatus .BytesTransferred )
100+ log .Printf ("[monitor ] progress updated for %s: %d bytes transferred" , track .File , fileStatus .BytesTransferred )
101101 continue
102102
103103 } else if currentTime .Sub (tracker .LastUpdated ) > monitorDuration || strings .Contains (fileStatus .State , "Errored" ) || strings .Contains (fileStatus .State , "Cancelled" ) {
104- log .Printf ("[slskd ] no progress on %s in %v, skipping track" , track .File , monitorDuration )
104+ log .Printf ("[monitor ] no progress on %s in %v, skipping track" , track .File , monitorDuration )
105105 tracker .Skipped = true
106106 cleanup (track , fileStatus .ID )
107107 continue
@@ -110,7 +110,7 @@ func Monitor(tracks []*models.Track,
110110
111111 // Exit condition: all tracks have been processed or skipped
112112 if tracksProcessed (tracks , progressMap ) {
113- log .Printf ("[slskd ] %d out of %d tracks have been downloaded" , successDownloads , len (tracks ))
113+ log .Printf ("[monitor ] %d out of %d tracks have been downloaded" , successDownloads , len (tracks ))
114114 return nil
115115 }
116116 default :
0 commit comments