mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 16:52:04 +02:00
Better logging for NzbDrone.Service
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace NzbDrone.Common.Contract
|
||||
@@ -13,6 +14,20 @@ namespace NzbDrone.Common.Contract
|
||||
public string LogMessage { get; set; }
|
||||
[JsonProperty("s")]
|
||||
public string String { get; set; }
|
||||
|
||||
|
||||
protected override Dictionary<string, string> GetString()
|
||||
{
|
||||
var dic = new Dictionary<string, string>
|
||||
{
|
||||
{"ExType", Type.NullCheck()},
|
||||
{"Logger", Logger.NullCheck()},
|
||||
{"Message", LogMessage.NullCheck()},
|
||||
{"Str", String.NullCheck()}
|
||||
};
|
||||
|
||||
return dic;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user