Cleanup some logging

This commit is contained in:
2016-03-07 12:12:18 -05:00
parent 05b2bfefb1
commit 314de4dece
+4 -1
View File
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.Mvc;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
using LeafWeb.Web.Attributes;
using LeafWeb.Web.ViewModels;
using LeafWeb.Web.ViewModels.LeafInput;
@@ -86,7 +87,9 @@ namespace LeafWeb.Web.Controllers
SetStatusMessage(HttpUtility.HtmlEncode(msg),StatusType.Success);
LogManager.GetCurrentClassLogger().Info(msg);
var logger = LogManager.GetCurrentClassLogger();
logger.Info("LeafInput: {0} Added, {1}, {2}, {3}", leafInput.Id, leafInput.Identifier, leafInput.SiteId, leafInput.Email);
logger.Info("LeafInputFiles: {0}, Queued", leafInput.Files.Select(f => f.Id.ToString()).Join(", "));
HangfireStartup.TriggerPiscalProcessQueue();