From 6e63cc8c191404d93fce07ffbb3d594649edecbe Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 13 Nov 2018 16:16:52 +1100 Subject: [PATCH] Fixes ScheduledPublishing since nothing was actually happening because the IEnumerable wasn't being resolved since the method does a yield return. Adds logging. --- src/Umbraco.Web/Scheduling/ScheduledPublishing.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs b/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs index db9299af37..0dc882c9ca 100644 --- a/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs +++ b/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Core.Services; @@ -56,7 +57,10 @@ namespace Umbraco.Web.Scheduling // fixme context & events during scheduled publishing? // in v7 we create an UmbracoContext and an HttpContext, and cache instructions // are batched, and we have to explicitly flush them, how is it going to work here? - _contentService.PerformScheduledPublish(DateTime.Now); + var result = _contentService.PerformScheduledPublish(DateTime.Now).ToList(); + if (result.Count > 0) + foreach(var grouped in result.GroupBy(x => x.Result)) + _logger.Info("Scheduled publishing result: '{StatusCount}' items with status {Status}", grouped.Count(), grouped.Key); } catch (Exception ex) {