aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateAssetData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateAssetData.cs7
1 files changed, 5 insertions, 2 deletions
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
103 { 103 {
104 return session.Load(typeof(AssetBase), uuid) as AssetBase; 104 return session.Load(typeof(AssetBase), uuid) as AssetBase;
105 } 105 }
106 catch 106 catch (Exception e)
107 { 107 {
108 m_log.Error("[NHIBERNATE] issue loading asset", e);
108 return null; 109 return null;
109 } 110 }
110 } 111 }
@@ -114,6 +115,7 @@ namespace OpenSim.Data.NHibernate
114 { 115 {
115 if (!ExistsAsset(asset.FullID)) 116 if (!ExistsAsset(asset.FullID))
116 { 117 {
118 m_log.InfoFormat("[NHIBERNATE] inserting asset {0}", asset.FullID);
117 using (ISession session = factory.OpenSession()) 119 using (ISession session = factory.OpenSession())
118 { 120 {
119 using (ITransaction transaction = session.BeginTransaction()) 121 using (ITransaction transaction = session.BeginTransaction())
@@ -155,7 +157,8 @@ namespace OpenSim.Data.NHibernate
155 157
156 override public bool ExistsAsset(LLUUID uuid) 158 override public bool ExistsAsset(LLUUID uuid)
157 { 159 {
158 return (FetchAsset(uuid) != null) ? true : false; 160 m_log.InfoFormat("[NHIBERNATE] ExistsAsset: {0}", uuid);
161 return (FetchAsset(uuid) != null);
159 } 162 }
160 163
161 public void DeleteAsset(LLUUID uuid) 164 public void DeleteAsset(LLUUID uuid)