You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by GitBox <gi...@apache.org> on 2022/01/18 17:11:36 UTC
[GitHub] [nutch] prakharchaube commented on a change in pull request #721: NUTCH-2923: Added JobId in Job Failure logs
prakharchaube commented on a change in pull request #721:
URL: https://github.com/apache/nutch/pull/721#discussion_r786979424
##########
File path: src/java/org/apache/nutch/util/SitemapProcessor.java
##########
@@ -402,9 +402,8 @@ public void sitemap(Path crawldb, Path hostdb, Path sitemapUrlDir, boolean stric
try {
boolean success = job.waitForCompletion(true);
if (!success) {
- String message = "SitemapProcessor_" + crawldb.toString()
- + " job did not succeed, job status: " + job.getStatus().getState()
- + ", reason: " + job.getStatus().getFailureInfo();
+ String message = NutchJob.getJobFailureLogMessage(
+ "SitemapProcessor_" + crawldb.toString(), job);
Review comment:
@sebastian-nagel Done. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@nutch.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org