worryg0d commented on PR #1942:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1942#issuecomment-4833936725

   Alright, I have updated the PR with what we discussed with @jameshartig
   
   I added a public method `RegisteredTypes.WithNullableUDTs(enabled bool)` 
that changes encoding behavior. This approach enables users to override the 
encoding behavior globally, so any new session would inherit the desired 
behavior:
   ```
   var GlobalTypes =  GlobalTypes.WithNullableUDTs(true)
   ```
   
   Also, I have added a `limitedLogger` wrapper around `StructuredLogger` that 
limits the number of logs to each n-th, including the first one. Currently, I 
chose each 100th log to be logged. However, probably just logging once is 
sufficient?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to