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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user