mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-16 20:51:58 +01:00
Fix Enum.GetName call
This commit is contained in:
parent
0c7de90e40
commit
853a15087d
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Common.Processes;
|
||||
using NzbDrone.Core.HealthCheck;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
||||
|
|
@ -35,7 +36,7 @@ public override void OnHealthIssue(HealthCheck.HealthCheck healthCheck)
|
|||
var environmentVariables = new StringDictionary();
|
||||
|
||||
environmentVariables.Add("Prowlarr_EventType", "HealthIssue");
|
||||
environmentVariables.Add("Prowlarr_Health_Issue_Level", nameof(healthCheck.Type));
|
||||
environmentVariables.Add("Prowlarr_Health_Issue_Level", Enum.GetName(typeof(HealthCheckResult), healthCheck.Type));
|
||||
environmentVariables.Add("Prowlarr_Health_Issue_Message", healthCheck.Message);
|
||||
environmentVariables.Add("Prowlarr_Health_Issue_Type", healthCheck.Source.Name);
|
||||
environmentVariables.Add("Prowlarr_Health_Issue_Wiki", healthCheck.WikiUrl.ToString() ?? string.Empty);
|
||||
|
|
|
|||
Loading…
Reference in a new issue