-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve log clarity #443
Improve log clarity #443
Conversation
This change makes logs easier to understand by humans. We start counting ingestion attempts at 1. We will also format all events in the json log in the same way.
lib/pushmi_pullyu/cli.rb
Outdated
PushmiPullyu::Logging.log_preservation_attempt(entity, | ||
queue.get_entity_ingestion_attempt(entity)) | ||
queue.get_entity_ingestion_attempt(entity) + 1) |
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.
Small nit: I feel like humanising the counts inside of the log_preservation_x methods would be ideal. Not a show stopper though
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.
Looks good to me! I left a small nit which may be somewhat subjective. The suggested change may also have other impacts. I think this is good to be merged as is unless that change is worthwhile.
This commit addresses PR comments and fixes a problem with the JSON log
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!
This change makes logs easier to understand by humans.
We start counting ingestion attempts at 1.
We will also format all events in the JSON log with the same structure.