-
Notifications
You must be signed in to change notification settings - Fork 300
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
reduce log levels of class import details #291
Conversation
Since some users had trouble configuring their logging and consequently hanging Maven builds when using Windows CMD as their console, the log levels for the most detailed information during class file import is now reduced to TRACE. In the end it also seems reasonable to log details about field accesses and method calls on a different level than which classes are imported. And since meanwhile the logging of which classes are imported is DEBUG level and not INFO level anymore like originally, this is a reasonable adjustment. Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
DeepCode's analysis on #0c602a found:
💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues. |
Since some users had trouble configuring their logging and consequently hanging Maven builds when using Windows CMD as their console, the log levels for the most detailed information during class file import is now reduced to TRACE. In the end it also seems reasonable to log details about field accesses and method calls on a different level than which classes are imported. And since meanwhile the logging of which classes are imported is DEBUG level and not INFO level anymore like originally, this is a reasonable adjustment.
@codecholeric - imho the logging of which class is analyzed (line 104) should as well be reduced to TRACE. Then all class import infos would have the same level. |
This was a conscious decision back then, because what classes are actually imported seems to me to be of a bigger relevance than all the details that are now logged on |
I understand, but then again all these classes are "encountered" but not analyzed (only those defined via @AnalyzeClasses). Im my case (just starting a project) it lists 889 classes, of which only 58 really get analyzed. So I would suggest to reduce the logging to those classes that really get analyzed or at least correct the wording to "Encountering class ..." |
I see, so you got mislead by the wording then. This debug statement is quite old, it was already there, before there was a) this was also supposed to help in the case "the dependencies of my class behave strange, let's see if these classes are even imported". So it could also be confusing if dependencies are suddenly not listed anymore here But of course it could log "processing class" (since it's the |
as it seems to confuse some users, because it is unrelated to `@AnalyzeClasses` and only refers to the actual files the importer processes during the class import. See #291 (comment) Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
Thanks |
Since some users had trouble configuring their logging and consequently hanging Maven builds when using Windows CMD as their console, the log levels for the most detailed information during class file import is now reduced to TRACE. In the end it also seems reasonable to log details about field accesses and method calls on a different level than which classes are imported. And since meanwhile the logging of which classes are imported is DEBUG level and not INFO level anymore like originally, this is a reasonable adjustment.