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

Fixes our failing dependency checks #142

Merged
merged 1 commit into from
May 26, 2020
Merged

Conversation

sfisher
Copy link
Contributor

@sfisher sfisher commented May 22, 2020

The OAI server moved and the Notifier had blank lines at the end of the log, so the last line always being a date isn't great assumption.

if there is whitespace at the end, strip the string of all the blank space. Also optimizes for only reading in the last 512 bytes instead of loading a possibly huge entire huge log file into memory and an array just check the last line.

…ifier had blank lines at the end, so strip the string of all the blank space. Also optimizes for only reading in the last 512 bytes instead of loading a possibly huge entire huge log file into memory and an array.
@sfisher sfisher requested a review from ryscher May 22, 2020 00:52
@ryscher
Copy link
Member

ryscher commented May 26, 2020

Looks good, and fixes the problem on dev. Thanks for tracking this down!

@ryscher ryscher merged commit 62cddc6 into master May 26, 2020
@sfisher sfisher deleted the fix-dependency-checker branch June 11, 2021 19:56
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