Remove more non-audit logtypes for U4-7

This commit is contained in:
Sebastiaan Janssen
2012-12-26 14:39:27 -01:00
parent 16289b8f2d
commit fae949145e
2 changed files with 3 additions and 24 deletions

View File

@@ -300,31 +300,10 @@ namespace umbraco.cms.businesslogic
/// <returns>The property with the given propertytype</returns>
public Property getProperty(PropertyType pt)
{
//object o = SqlHelper.ExecuteScalar<object>(
// "select id from cmsPropertyData where versionId=@version and propertyTypeId=@propertyTypeId",
// SqlHelper.CreateParameter("@version", this.Version),
// SqlHelper.CreateParameter("@propertyTypeId", pt.Id));
//if (o == null)
// return null;
//int propertyId;
//if (!int.TryParse(o.ToString(), out propertyId))
// return null;
//try
//{
// return new Property(propertyId, pt);
//}
//catch (Exception ex)
//{
// Log.Add(LogTypes.Error, this.Id, "An error occurred retreiving property. EXCEPTION: " + ex.Message);
// return null;
//}
EnsureProperties();
var prop = m_LoadedProperties
.Where(x => x.PropertyType.Id == pt.Id)
.SingleOrDefault();
var prop = m_LoadedProperties.SingleOrDefault(x => x.PropertyType.Id == pt.Id);
return prop;
}

View File

@@ -417,7 +417,7 @@ namespace umbraco.cms.businesslogic.web
d.OnNew(e);
// Log
Log.Add(LogTypes.New, u, d.Id, "");
LogHelper.Info<Document>(string.Format("New document {0}", d.Id));
// Run Handler
umbraco.BusinessLogic.Actions.Action.RunActionHandlers(d, ActionNew.Instance);