Fixed: More improvements to sentry logging (#669)

* Only add the exception message for some types

* Cleanse exception messages also

* Don't put exception message into log

It breaks the sentry grouping

* Combine the two calculations of fingerprint
This commit is contained in:
ta264
2019-03-13 23:10:58 +00:00
committed by Qstick
parent d6b4c4a9ed
commit 1c7ded859b
13 changed files with 36 additions and 72 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ namespace Lidarr.Api.V1.Indexers
}
catch (ReleaseDownloadException ex)
{
_logger.Error(ex, ex.Message);
_logger.Error(ex, "Getting release from indexer failed");
throw new NzbDroneClientException(HttpStatusCode.Conflict, "Getting release from indexer failed");
}
@@ -102,7 +102,7 @@ namespace Lidarr.Api.V1.Indexers
}
catch (Exception ex)
{
_logger.Error(ex, "Album search failed: " + ex.Message);
_logger.Error(ex, "Album search failed");
}
return new List<ReleaseResource>();
@@ -119,7 +119,7 @@ namespace Lidarr.Api.V1.Indexers
}
catch (Exception ex)
{
_logger.Error(ex, "Artist search failed: " + ex.Message);
_logger.Error(ex, "Artist search failed");
}
return new List<ReleaseResource>();