-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[Improvement-17361][TaskPlugin] Use logger marker to exclude the system log in task instance log content. #17378
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
Conversation
"{}" + | ||
"\n****************************** Script Content *****************************************************************\n", | ||
finalScript); | ||
log.info("Final Script Content:\n====================\n{}\n====================", finalScript); |
Check failure
Code scanning / CodeQL
Insertion of sensitive information into log files High
potentially sensitive information
This
potentially sensitive information
taskExecutionContext.setStartTime(System.currentTimeMillis()); | ||
log.info("End initialize taskContext {}", JSONUtils.toPrettyJsonString(taskExecutionContext)); | ||
log.info(TaskLogMarkers.excludeInTaskLog(), "{}", JSONUtils.toJsonString(taskExecutionContext)); |
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.
May log.info(TaskLogMarkers.excludeInTaskLog(), "Initialized taskContext {}", JSONUtils.toJsonString(taskExecutionContext));
is better?
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.
Yes, good catch
ffab324
to
47b644e
Compare
LGTM |
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
2df24ef
to
e50d2d8
Compare
e50d2d8
to
318df43
Compare
… in task instance log content.
318df43
to
b01750e
Compare
|
Purpose of the pull request
close #17361
Brief change log
Remove some info in task instance log, the user doesn't need to know the engine detail.
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contains incompatible change, you should also add it to
docs/docs/en/guide/upgrade/incompatible.md