okumin opened a new pull request, #4544:
URL: https://github.com/apache/ozone/pull/4544

   ## What changes were proposed in this pull request?
   
   Exclude `spring-jcl` so as to suppress the following log.
   
   ```
   ozone-recon-0: 2023-04-02 14:47:27,640 [main] WARN http.HttpRequestLog: 
Jetty request log can only be enabled using Log4j 
   ```
   
   This issue happens because `spring-jcl` introduces [another implementation 
of 
LogFactory](https://github.com/spring-projects/spring-framework/blob/v5.3.23/spring-jcl/src/main/java/org/apache/commons/logging/LogFactory.java)
 and the implementation of `spring-jcl` can be loaded.
   This PR takes the approach to exclude `spring-jcl` following [the 
instruction](https://github.com/spring-projects/spring-framework/blob/v5.3.23/spring-jcl/src/main/java/org/apache/commons/logging/package-info.java).
   
   There would be other approaches.
   - Fix 
[HttpRequestLog](https://github.com/apache/ozone/blob/53d8fe0e57f644989da927b65d00fecdbbfc4138/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/HttpRequestLog.java#L64-L105)
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8357
   
   ## How was this patch tested?
   
   I verified that the WARN log was gone.
   


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