Adding debug log when content item is imported

This commit is contained in:
Sebastien Ros
2015-08-26 14:44:56 -07:00
parent 6810cf473f
commit 7f91e787de
@@ -39,6 +39,7 @@ namespace Orchard.Recipes.RecipeHandlers {
//Populate import session with all identities to be imported //Populate import session with all identities to be imported
foreach (var identity in elementDictionary.Keys) { foreach (var identity in elementDictionary.Keys) {
Logger.Debug("Importing {0}", identity);
importContentSession.Set(identity, elementDictionary[identity].Name.LocalName); importContentSession.Set(identity, elementDictionary[identity].Name.LocalName);
} }
@@ -86,7 +87,7 @@ namespace Orchard.Recipes.RecipeHandlers {
var elementDictionary = new Dictionary<string, XElement>(); var elementDictionary = new Dictionary<string, XElement>();
foreach (var element in step.Elements()) { foreach (var element in step.Elements()) {
if (element.Attribute("Id") == null if (element.Attribute("Id") == null
|| string.IsNullOrEmpty(element.Attribute("Id").Value)) || String.IsNullOrWhiteSpace(element.Attribute("Id").Value))
continue; continue;
var identity = new ContentIdentity(element.Attribute("Id").Value).ToString(); var identity = new ContentIdentity(element.Attribute("Id").Value).ToString();