Pil0tXia commented on PR #4698: URL: https://github.com/apache/eventmesh/pull/4698#issuecomment-1878642878
@xwm1992 @pandaapo I have streamlined `LogUtil` to support only lazy-loading methods with Supplier. Now LogUtil only has 9 overloaded methods. There are 9 instances where the logger with time-consuming methods as parameters is replaced with LogUtil's Supplier. You can search for `LogUtil.` to find their usages. All other usages have been replaced with regular Slf4j usage and no further work is required. Besides, I have [Replaced isXXXXEnabled to normal use](https://github.com/apache/eventmesh/pull/4698/commits/40a16060a329856f0762a039f4ea294519b0117e), [Renamed messageLogger to static final MESSAGE_LOGGER](https://github.com/apache/eventmesh/pull/4698/commits/45028a591a2b2a5d159aa89eff8b16f6db840ddd), and [ran spotlessApply](https://github.com/apache/eventmesh/pull/4698/commits/ef7292d15434baf4e3da02b40d8d3e3f8ca97920). [ErrorProne task](https://github.com/apache/eventmesh/pull/4698/commits/3e4dc1183f7e70d9601f48342af4939b1a4b0094) may be used in a future refactor, so I retained it. -- 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]
