Log exception message with audio channel warn

This commit is contained in:
Qstick 2020-05-03 16:30:49 -04:00
parent cb97f90b9e
commit 13bd9535cc
1 changed files with 2 additions and 2 deletions

View File

@ -494,10 +494,10 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
return positions;
}
}
catch (Exception)
catch (Exception ex)
{
Logger.Warn()
.Message("Unable to format audio channels using 'AudioChannelPositions', with a value of: '{0}' and '{1}'", audioChannelPositions, mediaInfo.AudioChannelPositionsText)
.Message("Unable to format audio channels using 'AudioChannelPositions', with a value of: '{0}' and '{1}'. Error {2}", audioChannelPositions, mediaInfo.AudioChannelPositionsText, ex.Message)
.WriteSentryWarn("UnknownAudioChannelFormat", audioChannelPositions, mediaInfo.AudioChannelPositionsText)
.Write();
}