From c2e2997a999ba5bdaa0b598b1286ee73cc14e372 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 19 Jun 2008 21:20:23 +0000 Subject: more work towards nhibernate working with mysql, not there yet, but moving in the right direction. --- OpenSim/Data/NHibernate/NHibernateAssetData.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs') diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index 5c691a7..db77942 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs @@ -103,8 +103,9 @@ namespace OpenSim.Data.NHibernate { return session.Load(typeof(AssetBase), uuid) as AssetBase; } - catch + catch (Exception e) { + m_log.Error("[NHIBERNATE] issue loading asset", e); return null; } } @@ -114,6 +115,7 @@ namespace OpenSim.Data.NHibernate { if (!ExistsAsset(asset.FullID)) { + m_log.InfoFormat("[NHIBERNATE] inserting asset {0}", asset.FullID); using (ISession session = factory.OpenSession()) { using (ITransaction transaction = session.BeginTransaction()) @@ -155,7 +157,8 @@ namespace OpenSim.Data.NHibernate override public bool ExistsAsset(LLUUID uuid) { - return (FetchAsset(uuid) != null) ? true : false; + m_log.InfoFormat("[NHIBERNATE] ExistsAsset: {0}", uuid); + return (FetchAsset(uuid) != null); } public void DeleteAsset(LLUUID uuid) -- cgit v1.1