By default, redactClientLogData also redacts $comment field. This is a field usually used for debugging from the application, for example to find which part of the application executed the query and some other metadata that could be useful.
It would be helpful to add a parameter to redactClientLogData so it ignores the $comment field. With the current implementation, users cannot really use $comment on servers that need sensitive data protection.