-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hey CS team, we update our sdk to 1.8.0, because of log4j issue, but we notice few changes on the Entry and ContentType classes that the logger inside is no longer static. That cause an issue with our cache, what we are doing is to pull some of the common entries in our system and cache in redis to avoid trafic for most common entries, but since the logger is part of the instance when we put to our cache the Entry is serialised with Jackson and its throw self-reference error
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Direct self-reference leading to cycle (through reference chain: com.contentstack.sdk.Entry["contentType"]->com.contentstack.sdk.ContentType["logger"]->java.util.logging.Logger["config"]->java.util.logging.Logger$ConfigurationData["delegate"])
Is there any particular reason to change that logger? And if not can we change it somehow to avoid that serialisation issue.