replaced Json.Serialize with ToJson extension method.

This commit is contained in:
Keivan Beigi 2013-05-29 14:29:51 -07:00
commit 8bdf8c31f0
10 changed files with 14 additions and 19 deletions

View file

@ -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);
}