Uploaded image for project: 'Scheduler'
  1. Scheduler
  2. MGNLSCH-65

Exceptions in scheduled jobs are not logged anymore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.2.3
    • 2.2.1
    • Saigon 50
    • 1

      In MGNLSCH-57, we removed CommandJob's method #logAndSendErrorMessage—rightfully, we removed the UI/Pulse dependency from it.

      However we don't log command errors anymore (was in that method), but just rethrow the JobExecutionException.
      The quartz scheduler (JobRunShell) logs it as INFO, whereas our log4j config has only WARN prio for everything under the org category.

      2 solutions:
      A. Reintroduce error logging from our CommandJob
      B. Tune org.quartz category to INFO in magnolia-empty-webapp/src/main/webapp/WEB-INF/config/default/log4j.xml (and move this ticket to MGNLCE).

      PS: btw, scheduler is rather greedy on logging, what you expect as info actually comes as debug, so option B. wouldn't be more verbose, besides some init messages upon startup

        Acceptance criteria

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD