Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug log in AlluxioJniFuseFileSystem #640

Closed
dbw9580 opened this issue Jun 3, 2022 · 1 comment
Closed

Fix debug log in AlluxioJniFuseFileSystem #640

dbw9580 opened this issue Jun 3, 2022 · 1 comment

Comments

@dbw9580
Copy link

dbw9580 commented Jun 3, 2022

https://github.com/Alluxio/alluxio/blob/8dcbc1051c4bff18391afb33e198e778bd37bb9b/integration/fuse/src/main/java/alluxio/fuse/AlluxioJniFuseFileSystem.java#L415-L416

The debug log should use the internal formatting capability of Slf4J, so that when debug level logging is not enabled, a new string will not be created at all.

Change the line

LOG.debug(String.format("%s", arg));

to

LOG.debug("{}", arg);
@dbw9580
Copy link
Author

dbw9580 commented Jun 3, 2022

/assign @YangchenYe323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants