You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "Alonexc (via GitHub)" <gi...@apache.org> on 2023/02/16 06:29:35 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #3157: [Enhancement] Method passes a concatenated string to SLF4J's or Log4j2's format string[SyncSubClient]

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

   ### 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/219285676-d369041c-83ab-4c71-99d2-d2ecd3a815bd.png)
   located at:
   eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/demo/SyncSubClient.java line 49
   analysis and explanation:
   This method uses an SLF4J or Log4j2 logger to log a string, where the first (format) string is created using concatenation. You should use {} markers to inject dynamic content into the string, so that String building is delayed until the actual log string is needed. If the log level is high enough that this log statement isn't used, then the appends will never be executed.
   
   
   ### Describe the solution you'd like
   
   ![image](https://user-images.githubusercontent.com/91315508/219285730-59ff2082-96c9-4059-b0db-48fd216d9fda.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: dev-unsubscribe@eventmesh.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] xwm1992 closed issue #3157: [Enhancement] Method passes a concatenated string to SLF4J's or Log4j2's format string[SyncSubClient]

Posted by "xwm1992 (via GitHub)" <gi...@apache.org>.
xwm1992 closed issue #3157: [Enhancement] Method passes a concatenated string to SLF4J's or Log4j2's format string[SyncSubClient]
URL: https://github.com/apache/incubator-eventmesh/issues/3157


-- 
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: dev-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org