Fixes U4-1479 by adding .ToList() to allowed templates, which ensures that the list is fetched from the database while the connection is still open.

Fixing typo in usage of LogHelper in PhysicalFileSystem.
Ensures connection is closed after using TableExists for MySql.
Adds logging to UmbracoDatabase.
This commit is contained in:
Morten Christensen
2013-01-18 09:00:18 -01:00
parent ad62cf0123
commit b5a140945a
4 changed files with 25 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Data;
using System.Data.Common;
using Umbraco.Core.Logging;
namespace Umbraco.Core.Persistence
{
@@ -14,10 +15,7 @@ namespace Umbraco.Core.Persistence
/// </remarks>
public class UmbracoDatabase : Database
{
private readonly Guid _instanceId = Guid.NewGuid();
private readonly Guid _instanceId = Guid.NewGuid();
/// <summary>
/// Used for testing
/// </summary>
@@ -41,5 +39,11 @@ namespace Umbraco.Core.Persistence
public UmbracoDatabase(string connectionStringName) : base(connectionStringName)
{
}
public override void OnException(Exception x)
{
LogHelper.Info<UmbracoDatabase>(x.StackTrace);
base.OnException(x);
}
}
}