gharris1727 commented on PR #13294:
URL: https://github.com/apache/kafka/pull/13294#issuecomment-1894252929

   > I think this makes sense behaviorally, but we should log a warning with 
the unexpected content IMO. WDYT?
   
   I don't think we should, both because it breaks the TypeReference 
abstraction and because it's inherently untrusted content that shouldn't be put 
into the log by default. 
   
   If someone is debugging their application and wants to see the REST 
responses, they can turn on logging for `org.eclipse.jetty.client` and see 
stuff like this:
   ```
   [2024-01-16 10:02:28,753] DEBUG Response content HttpResponse[HTTP/1.1 201 
Created]@1b2c4186
   DirectByteBufferR@37cab27d[p=196,l=250,c=16384,r=54]={HTTP/1.1 
...09)\r\n\r\n<<<{"name":"blah","config":{...ks":[],"type":"source"}>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00}
 (org.eclipse.jetty.client.HttpReceiver:345)
   ```


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to