mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
replaced Json.Serialize with ToJson extension method.
This commit is contained in:
parent
676599c520
commit
8bdf8c31f0
10 changed files with 14 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue