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

CommandJob does not properly report name and catalog on exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.3.5
    • 2.3.4
    • Maintenance 24
    • 0.5

      When an exception occurs in the class CommandJob then eventually it should log the command and catalog.

      Current Output

      Cannot execute command {0}-{1}.
      

      Expected Output

      Cannot execute command website-publish
      

      Solution
      Combine

      String errorMessage = String.format("Cannot execute command {0}-{1}.", cmdName, catalogName);
      log.error(errorMessage, e);
      

      into

      log.error("Cannot execute command {}-{}", cmdName, catalogName, e);
      

        Acceptance criteria

              rgange Richard Gange
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD