Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2488

Wrong warning in HeritrixController.requestCrawlstart

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Heritrix 3
    • Labels:
      None

      Description

      The code

      if (jobResult.job.crawlControllerState.equals(CrawlControllerState.NASCENT)) {
                        log.info("The H3 job {} in now in state CrawlControllerState.NASCENT",  jobName);
                      } else {
                        log.warn("The job state is now {}. Should have been CrawlControllerState.NASCENT",  jobResult.job.crawlControllerState);
                      }
      

      results in spurious logentries like

      The job state is now NASCENT. Should have been CrawlControllerState.NASCENT
      

      The CrawlControllerState enum is defined https://github.com/netarchivesuite/heritrix3-wrapper/blob/master/src/main/java/org/netarchivesuite/heritrix3wrapper/Heritrix3Wrapper.java

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                svc Søren Vejrup Carlsen
                Reporter:
                svc Søren Vejrup Carlsen
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: