mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Updated some log levels
This commit is contained in:
parent
56fdf1a040
commit
5a5d0852ee
5 changed files with 17 additions and 19 deletions
|
@ -110,13 +110,13 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
if (episodes.Count <= 0)
|
||||
{
|
||||
Logger.Debug("Can't find any matching episodes in the database. skipping");
|
||||
Logger.Debug("Can't find any matching episodes in the database. skipping. {0}", filePath);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (episodes.Any(e => e.EpisodeFile != null && e.EpisodeFile.QualityWrapper > parseResult.Quality))
|
||||
{
|
||||
Logger.Info("File with better quality is already attached. skipping {0}", filePath);
|
||||
Logger.Trace("File with better quality is already attached. skipping {0}", filePath);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
ep.EpisodeFileId = fileId;
|
||||
_episodeProvider.UpdateEpisode(ep);
|
||||
Logger.Trace("Linking file {0} to {1}", filePath, ep);
|
||||
Logger.Debug("Linking file {0} to {1}", filePath, ep);
|
||||
}
|
||||
|
||||
|
||||
|
@ -156,7 +156,7 @@ namespace NzbDrone.Core.Providers
|
|||
_diskProvider.CreateDirectory(newFile.DirectoryName);
|
||||
|
||||
//Do the rename
|
||||
Logger.Trace("Attempting to rename {0} to {1}", episodeFile.Path, newFile.FullName);
|
||||
Logger.Debug("Moving file [{0}] > [1]", episodeFile.Path, newFile.FullName);
|
||||
_diskProvider.MoveFile(episodeFile.Path, newFile.FullName);
|
||||
|
||||
//Update the filename in the DB
|
||||
|
@ -200,7 +200,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
var mediaFileList = filesOnDisk.Where(c => MediaExtentions.Contains(Path.GetExtension(c).ToLower())).ToList();
|
||||
|
||||
Logger.Debug("{0} media files were found in {1}", mediaFileList.Count, path);
|
||||
Logger.Trace("{0} video files were found in {1}", mediaFileList.Count, path);
|
||||
return mediaFileList;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue