mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 13:57:06 -04:00
Remove stacktrace if hardlink resulted in EXDEV.
This commit is contained in:
parent
f56003e288
commit
e8d843c93d
1 changed files with 13 additions and 1 deletions
|
@ -410,9 +410,21 @@ namespace NzbDrone.Mono.Disk
|
|||
fileInfo.CreateLink(destination);
|
||||
return true;
|
||||
}
|
||||
catch (UnixIOException ex)
|
||||
{
|
||||
if (ex.ErrorCode == Errno.EXDEV)
|
||||
{
|
||||
Logger.Trace("Hardlink '{0}' to '{1}' failed due to cross-device access.", source, destination);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.Debug(ex, "Hardlink '{0}' to '{1}' failed.", source, destination);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Debug(ex, string.Format("Hardlink '{0}' to '{1}' failed.", source, destination));
|
||||
Logger.Debug(ex, "Hardlink '{0}' to '{1}' failed.", source, destination);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue