-
Notifications
You must be signed in to change notification settings - Fork 38
Remove default logging in the Data Loader DAO #2708
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
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.
Pull Request Overview
This pull request removes default logging for DAO operations to prevent excessive console output during data imports. The changes include:
- Removal of logger imports and logger instance
- Deletion of log messages after GET and PUT operations in storage and transaction modes
- Removal of log messages from SCAN operations
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.
LGTM! Thank you!
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.
LGTM!
Thank you.
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.
LGTM. Thank you.
@@ -59,9 +50,7 @@ public Optional<Result> get( | |||
|
|||
try { | |||
Get get = createGetWith(namespace, table, partitionKey, clusteringKey); | |||
Optional<Result> result = storage.get(get); | |||
logger.info(String.format(GET_COMPLETED_MSG, loggingKey)); |
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.
I think there is another option to change the log level to DEBUG or TRACE. What do you think?
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 add some verbose options later in the command args, also with some progress printing to the console I think. So we're gonna add the logger back if needed. WDYT? cc @ypeckstadt
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.
Sounds good 👍
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.
LGTM! 👍
Description
Currently, the data loader logs every operation related to DAO operations by default, which is not user-friendly, especially when importing data every get, put is printed to the console. So we should remove this default behavior and add a proper verbose option later in another PR. PTAL. Thank you.
Related issues and/or PRs
NA
Changes made
Checklist
Additional notes (optional)
NA
Release notes
NA