healchow commented on code in PR #8232:
URL: https://github.com/apache/inlong/pull/8232#discussion_r1228232326


##########
inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/utils/HttpContextUtils.java:
##########
@@ -104,7 +104,10 @@ public static String getBodyString(ServletRequest request) 
{
                 }
             }
         } catch (IOException e) {
-            log.error("failed to get body string of request={}", request);
+            log.error("failed to get body string of request={}", request, e);
+        }
+        if (sb.length() == 0) {

Review Comment:
   1. `sb` -> `builder`
   2. Please extract a constant for `{}`, such as `EMPTY_BODY`.



-- 
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]

Reply via email to