Alonexc opened a new issue, #2593:
URL: https://github.com/apache/incubator-eventmesh/issues/2593

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Enhancement Request
   
   
![image](https://user-images.githubusercontent.com/91315508/207542494-88d91dcc-2433-4dec-b958-07436bb3e536.png)
   
![image](https://user-images.githubusercontent.com/91315508/207542493-1224654e-a589-4889-b723-7cee60d173ce.png)
   located at:
   
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/metrics/http/HTTPMetricsServer.java
 line 151
   analysis and explanation:
   This method uses an SLF4J or Log4J2 logger to log a string which was 
produced through a call to String.format, where the format string passed was a 
constant string containing only simple format markers that could be directly 
handled by SLF4J or Log4J.
   
   
   ### Describe the solution you'd like
   
   Change ‘logger.error(String.format("This %s is an error", s));’to 
‘logger.error("This {} is an error", s)’;.
   reference:
   
![image](https://user-images.githubusercontent.com/91315508/207542920-95d2b653-9490-473f-b417-cb4c6b0375e2.png)
   
![image](https://user-images.githubusercontent.com/91315508/207542921-fb045314-1e1b-4332-b0a1-940e2439a1ae.png)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


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