From 701517c5031b71d0112b953f56f753a6653558ee Mon Sep 17 00:00:00 2001 From: Jamie Date: Wed, 7 Feb 2018 08:07:06 +0000 Subject: [PATCH] Added some debugging to see what's going on !wip --- src/Ombi.Notifications/NotificationMessageCurlys.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Ombi.Notifications/NotificationMessageCurlys.cs b/src/Ombi.Notifications/NotificationMessageCurlys.cs index ce36c2599..251f7162d 100644 --- a/src/Ombi.Notifications/NotificationMessageCurlys.cs +++ b/src/Ombi.Notifications/NotificationMessageCurlys.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using Microsoft.Extensions.Logging; using Ombi.Helpers; using Ombi.Notifications.Models; using Ombi.Settings.Settings.Models; @@ -10,9 +11,16 @@ namespace Ombi.Notifications { public class NotificationMessageCurlys { + public NotificationMessageCurlys(ILogger log) + { + _log = log; + } + + private readonly ILogger _log; public void Setup(NotificationOptions opts, FullBaseRequest req, CustomizationSettings s) { + _log.LogDebug("Notification options: {@Opts}, Req: {@Req}, Settings: {@S}", opts, req, s); ApplicationUrl = (s?.ApplicationUrl.HasValue() ?? false) ? s.ApplicationUrl : string.Empty; ApplicationName = string.IsNullOrEmpty(s?.ApplicationName) ? "Ombi" : s?.ApplicationName; RequestedUser = string.IsNullOrEmpty(req.RequestedUser.Alias) @@ -30,6 +38,8 @@ namespace Ombi.Notifications public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s) { + + _log.LogDebug("Notification options: {@Opts}, Req: {@Req}, Settings: {@S}", opts, req, s); ApplicationUrl = (s?.ApplicationUrl.HasValue() ?? false) ? s.ApplicationUrl : string.Empty; ApplicationName = string.IsNullOrEmpty(s?.ApplicationName) ? "Ombi" : s?.ApplicationName; RequestedUser = string.IsNullOrEmpty(req.RequestedUser.Alias)