There's already a method setDebug() in maestro_base_engine.class.php and a private variable $this->_debug defined in maestro_engine_version1.php which seems to enable verbose watchdog logging. As far as I can see what's missing is the option to enable/disable debug mode in the admin ui at admin/config/workflow/maestro_configure. I suggest to introduce a new system settings variable maestro_debug_mode_enabled which may be configured through the admin ui.

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larskleiner’s picture

Patch attached.

larskleiner’s picture

Status: Active » Needs review

Changed status to "needs review"

larskleiner’s picture

Re-rolled because I got the following notice with patch #1.

Notice: Undefined property: MaestroEngineVersion1::$mode in MaestroEngineVersion1->getQueue()

_randy’s picture

Looks good too.. will commit.

_randy’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 267e6fb on master, 8.x-1.x authored by larskleiner, committed by _randy:
    Commit for addition of debug mode checkbox. Issue #2080111