-
Notifications
You must be signed in to change notification settings - Fork 25
Added loggers for debugging MAINT-38931 #553
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
base: master
Are you sure you want to change the base?
Conversation
| public Mono<BatchProductGroupTask> assignPermissionsBatch(BatchProductGroupTask task, | ||
| Map<User, Map<BusinessFunctionGroup, List<BaseProductGroup>>> usersPermissions) { | ||
|
|
||
| log.info("Assigning permissions batch for task: {}, usersPermissions: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be log all permissions on INFO level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will revert everything after debugging is complete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't develop for reverting. Change it to debug and set your log levels at runtime.
|
|
||
| log.info("Assigning permissions batch for task: {}, usersPermissions: {}", | ||
| task, usersPermissions); | ||
| System.out.println("Assigning permissions batch for task: " + task + ", usersPermissions: " + usersPermissions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use a system output? It's a super weird solution for logging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will revert everything after debugging is complete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system output is to make sure logs are printed without fail and to save some time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.debug will also print when the appropriate level is set in configuration.
|
| public Mono<BatchProductGroupTask> assignPermissionsBatch(BatchProductGroupTask task, | ||
| Map<User, Map<BusinessFunctionGroup, List<BaseProductGroup>>> usersPermissions) { | ||
|
|
||
| log.info("Assigning permissions batch for task: {}, usersPermissions: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't develop for reverting. Change it to debug and set your log levels at runtime.
|
|
||
| log.info("Assigning permissions batch for task: {}, usersPermissions: {}", | ||
| task, usersPermissions); | ||
| System.out.println("Assigning permissions batch for task: " + task + ", usersPermissions: " + usersPermissions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.debug will also print when the appropriate level is set in configuration.
| .collect(Collectors.toList()))) | ||
| .collect(Collectors.toList()); | ||
| log.info("Assigned permissions request: {}", request); | ||
| System.out.println("Assigned permissions request: " + request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
|
Closing the PR as the issue is Resolved . |




Description
A few sentences describing the overall goals of the pull request's commits.
Checklist