Skip to content
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

Add job name tags to log events to improve debugging #739

Merged
merged 2 commits into from
Apr 29, 2020

Conversation

sysadmind
Copy link
Contributor

Some of the log calls had the job_name tag, but others did not. This adds them to those calls that were missing to improve log correlation, especially when there are many jobs all with the same schedule (i.e. @every 1m) and these execution log entries are all intertwined.

I kept the "job_name" key to match other logging calls in this file, but it seems to be inconsistent with other files (store.go uses "job")

Some of the log calls had the job_name tag, but others did not. This adds them to those calls that were missing to improve log correlation, especially when there are many jobs all with the same schedule (i.e. @every 1m) and these execution log entries are all intertwined.
Copy link
Member

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably bad naming legacy, better to switch it to job. Thanks!

@sysadmind
Copy link
Contributor Author

Quite happy to convert while I'm already making changes. All occurrences now use job

Copy link
Member

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@vcastellm vcastellm merged commit 7bfddc7 into distribworks:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants