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

NUTCH-3013 Employ commons-lang3's StopWatch to simplify timing logic #788

Merged
merged 17 commits into from Oct 21, 2023

Conversation

lewismc
Copy link
Member

@lewismc lewismc commented Oct 21, 2023

Addresses https://issues.apache.org/jira/browse/NUTCH-3013

If this gets merged I'll squash all of those commits.

Note, this does change the logging slightly. The whole LOG.info("CrawlDb update: starting at {}", sdf.format(start)); is redundant because we already capture the datetime stamp in the log output anyway.
I simplified this to LOG.info("CrawlDb update: starting");.

Passes local unit tests.

Copy link
Contributor

@sebastian-nagel sebastian-nagel left a comment

Choose a reason for hiding this comment

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

+1 looks good, tested a couple of tools

@lewismc lewismc merged commit 8431dcf into apache:master Oct 21, 2023
1 check passed
@lewismc lewismc deleted the NUTCH-3013 branch October 21, 2023 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants