mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
@@ -9,7 +9,7 @@ namespace NzbDrone.Common.Instrumentation
|
||||
public static string GetHash(this LogEventInfo logEvent)
|
||||
{
|
||||
var stackString = logEvent.StackTrace.ToJson();
|
||||
var hashSeed = String.Concat(logEvent.LoggerName, logEvent.Exception.GetType().ToString(), stackString, logEvent.Level);
|
||||
var hashSeed = string.Concat(logEvent.LoggerName, logEvent.Exception.GetType().ToString(), stackString, logEvent.Level);
|
||||
return HashUtil.CalculateCrc(hashSeed);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace NzbDrone.Common.Instrumentation
|
||||
{
|
||||
if (logEvent.Exception != null)
|
||||
{
|
||||
if (String.IsNullOrWhiteSpace(message))
|
||||
if (string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
message = logEvent.Exception.Message;
|
||||
}
|
||||
|
Reference in New Issue
Block a user