mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
replaced Json.Serialize with ToJson extension method.
This commit is contained in:
@@ -8,7 +8,7 @@ namespace NzbDrone.Common.Instrumentation
|
||||
{
|
||||
public static string GetHash(this LogEventInfo logEvent)
|
||||
{
|
||||
var stackString = Json.Serialize(logEvent.StackTrace);
|
||||
var stackString = logEvent.StackTrace.ToJson();
|
||||
var hashSeed = String.Concat(logEvent.LoggerName, logEvent.Exception.GetType().ToString(), stackString, logEvent.Level);
|
||||
return HashUtil.CalculateCrc(hashSeed);
|
||||
}
|
||||
|
Reference in New Issue
Block a user