It looks like we can switch to a `BeanSerializerCustomizer` to issue the log statement to avoid affecting the serializer detection. ## References * spring-projects/spring-boot#41856