mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding debug log when content item is imported
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user