-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[develop] Adding jids in master & minion logs #48660
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
isbm
left a comment
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.
Unit Tests? 😉
gtmanfred
left a comment
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.
rallytime
left a comment
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 have a very minor change request.
Otherwise, great idea using tornado's StackContext!
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.
This should be log_fmt_jid
8ee602b to
96cc656
Compare
|
Tests will pass under Python3 if logging is not disabled |
isbm
left a comment
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.
👍
|
@garethgreenaway One lint failure here. Can you fix that up, please? https://jenkinsci.saltstack.com/job/pr-lint/job/PR-48660/2/warnings52Result/ |
…mport for logging to import the salt.log.setup to ensure that we're using the customized salt logging.
…he minion logs as well.
…Context so we have control the format of what the JID will look like in the logs.
…ormat for log_fmt_jid.
… if it is included in the log format string.
6d3d0df to
c97e65e
Compare
|
re-run all |
cachedout
left a comment
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.
This is extremely well-done. Hats off, @garethgreenaway

What does this PR do?
This change adds the optional ability to include the JIDs in the master & minion logs for all entries related to a particular Salt job.
What issues does this PR fix or reference?
#45282
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.