Remove stacktrace if hardlink resulted in EXDEV.

pull/2/head
Taloth Saldono 4 years ago committed by Qstick
parent 7b60612ef3
commit 026c34c3ba

@ -418,9 +418,22 @@ 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…
Cancel
Save