Skip to content

Commit 391a7d6

Browse files
committed
Apply NH-2557
SVN: trunk@5420
1 parent c5c238f commit 391a7d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate/Type/CompositeCustomType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public CompositeCustomType(System.Type userTypeClass, IDictionary<string, string
5151
TypeFactory.InjectParameters(userType, parameters);
5252
if (!userType.ReturnedClass.IsSerializable)
5353
{
54-
LoggerProvider.LoggerFor(typeof(CustomType)).Warn("custom type is not Serializable: " + userTypeClass);
54+
LoggerProvider.LoggerFor(typeof(CustomType)).WarnFormat("the custom composite class '{0}' handled by '{1}' is not Serializable: ", userType.ReturnedClass, userTypeClass);
5555
}
5656
}
5757

src/NHibernate/Type/CustomType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public CustomType(System.Type userTypeClass, IDictionary<string, string> paramet
6666
sqlTypes = userType.SqlTypes;
6767
if (!userType.ReturnedType.IsSerializable)
6868
{
69-
LoggerProvider.LoggerFor(typeof(CustomType)).Warn("custom type is not Serializable: " + userTypeClass);
69+
LoggerProvider.LoggerFor(typeof(CustomType)).WarnFormat("the custom type '{0}' handled by '{1}' is not Serializable: ", userType.ReturnedType, userTypeClass);
7070
}
7171
}
7272

0 commit comments

Comments
 (0)