mirror of
https://github.com/corda/corda.git
synced 2025-03-15 00:36:49 +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) -> {
|
||||
logger.debug("class=[${actualClass?.simpleName} | $declaredClass] is an enumeration "
|
||||
logger.info("class=[${actualClass?.simpleName} | $declaredClass] is an enumeration "
|
||||
+ "declaredType=${declaredType.typeName} "
|
||||
+ "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.
|
||||
*/
|
||||
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)) {
|
||||
customSerializers += customSerializer
|
||||
serializersByDescriptor[customSerializer.typeDescriptor] = customSerializer
|
||||
@ -258,7 +258,7 @@ open class SerializerFactory(
|
||||
}
|
||||
|
||||
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)) {
|
||||
customSerializers += 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
|
||||
// instance of the class, as such we need to build an EvolutionSerializer
|
||||
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)
|
||||
}
|
||||
} catch (e: ClassNotFoundException) {
|
||||
@ -288,7 +288,7 @@ open class SerializerFactory(
|
||||
throw e
|
||||
}
|
||||
else {
|
||||
logger.debug("typeNotation=\"${typeNotation.name}\" action=\"carpentry required\"")
|
||||
logger.info("typeNotation=\"${typeNotation.name}\" action=\"carpentry required\"")
|
||||
}
|
||||
metaSchema.buildFor(typeNotation, classloader)
|
||||
}
|
||||
@ -389,7 +389,7 @@ open class SerializerFactory(
|
||||
|| !customSerializer.isSerializerFor(declaredSuperClass)
|
||||
|| !customSerializer.revealSubclassesInSchema
|
||||
) {
|
||||
logger.debug ("action=\"Using custom serializer\", class=${clazz.typeName}, " +
|
||||
logger.info ("action=\"Using custom serializer\", class=${clazz.typeName}, " +
|
||||
"declaredType=${declaredType.typeName}")
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
|
Loading…
x
Reference in New Issue
Block a user