mirror of
https://github.com/corda/corda.git
synced 2025-06-01 07:00:54 +00:00
up log level
This commit is contained in:
parent
426f822502
commit
6041f25cae
@ -140,7 +140,7 @@ open class SerializerFactory(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Enum::class.java.isAssignableFrom(actualClass ?: declaredClass) -> {
|
Enum::class.java.isAssignableFrom(actualClass ?: declaredClass) -> {
|
||||||
logger.debug("class=[${actualClass?.simpleName} | $declaredClass] is an enumeration "
|
logger.info("class=[${actualClass?.simpleName} | $declaredClass] is an enumeration "
|
||||||
+ "declaredType=${declaredType.typeName} "
|
+ "declaredType=${declaredType.typeName} "
|
||||||
+ "isEnum=${declaredType::class.java.isEnum}")
|
+ "isEnum=${declaredType::class.java.isEnum}")
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ open class SerializerFactory(
|
|||||||
* that expects to find getters and a constructor with a parameter for each property.
|
* that expects to find getters and a constructor with a parameter for each property.
|
||||||
*/
|
*/
|
||||||
open fun register(customSerializer: CustomSerializer<out Any>) {
|
open fun register(customSerializer: CustomSerializer<out Any>) {
|
||||||
logger.debug ("action=\"Registering custom serializer\", class=\"${customSerializer.type}\"")
|
logger.info ("action=\"Registering custom serializer\", class=\"${customSerializer.type}\"")
|
||||||
if (!serializersByDescriptor.containsKey(customSerializer.typeDescriptor)) {
|
if (!serializersByDescriptor.containsKey(customSerializer.typeDescriptor)) {
|
||||||
customSerializers += customSerializer
|
customSerializers += customSerializer
|
||||||
serializersByDescriptor[customSerializer.typeDescriptor] = customSerializer
|
serializersByDescriptor[customSerializer.typeDescriptor] = customSerializer
|
||||||
@ -258,7 +258,7 @@ open class SerializerFactory(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun registerExternal(customSerializer: CorDappCustomSerializer) {
|
fun registerExternal(customSerializer: CorDappCustomSerializer) {
|
||||||
logger.debug ("action=\"Registering external serializer\", class=\"${customSerializer.type}\"")
|
logger.info ("action=\"Registering external serializer\", class=\"${customSerializer.type}\"")
|
||||||
if (!serializersByDescriptor.containsKey(customSerializer.typeDescriptor)) {
|
if (!serializersByDescriptor.containsKey(customSerializer.typeDescriptor)) {
|
||||||
customSerializers += customSerializer
|
customSerializers += customSerializer
|
||||||
serializersByDescriptor[customSerializer.typeDescriptor] = customSerializer
|
serializersByDescriptor[customSerializer.typeDescriptor] = customSerializer
|
||||||
@ -279,7 +279,7 @@ open class SerializerFactory(
|
|||||||
// doesn't match that of the serialised object then we are dealing with different
|
// doesn't match that of the serialised object then we are dealing with different
|
||||||
// instance of the class, as such we need to build an EvolutionSerializer
|
// instance of the class, as such we need to build an EvolutionSerializer
|
||||||
if (serialiser.typeDescriptor != typeNotation.descriptor.name) {
|
if (serialiser.typeDescriptor != typeNotation.descriptor.name) {
|
||||||
logger.debug("typeNotation=${typeNotation.name} action=\"requires Evolution\"")
|
logger.info("typeNotation=${typeNotation.name} action=\"requires Evolution\"")
|
||||||
getEvolutionSerializer(typeNotation, serialiser, schemaAndDescriptor.schemas)
|
getEvolutionSerializer(typeNotation, serialiser, schemaAndDescriptor.schemas)
|
||||||
}
|
}
|
||||||
} catch (e: ClassNotFoundException) {
|
} catch (e: ClassNotFoundException) {
|
||||||
@ -288,7 +288,7 @@ open class SerializerFactory(
|
|||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
logger.debug("typeNotation=\"${typeNotation.name}\" action=\"carpentry required\"")
|
logger.info("typeNotation=\"${typeNotation.name}\" action=\"carpentry required\"")
|
||||||
}
|
}
|
||||||
metaSchema.buildFor(typeNotation, classloader)
|
metaSchema.buildFor(typeNotation, classloader)
|
||||||
}
|
}
|
||||||
@ -389,7 +389,7 @@ open class SerializerFactory(
|
|||||||
|| !customSerializer.isSerializerFor(declaredSuperClass)
|
|| !customSerializer.isSerializerFor(declaredSuperClass)
|
||||||
|| !customSerializer.revealSubclassesInSchema
|
|| !customSerializer.revealSubclassesInSchema
|
||||||
) {
|
) {
|
||||||
logger.debug ("action=\"Using custom serializer\", class=${clazz.typeName}, " +
|
logger.info ("action=\"Using custom serializer\", class=${clazz.typeName}, " +
|
||||||
"declaredType=${declaredType.typeName}")
|
"declaredType=${declaredType.typeName}")
|
||||||
|
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user