Debug option is nice if you're actively working on tweaking mails or debugging issues. Problem is when Sparkpost fails for some reason (i.e. api.sparkpost.com is temporarily unavailable) and debug setting is off. Proposition is to log message if something went wrong no matter if debug is on or off, and if it's on log message wrapper as well, which provides extensive debug data.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zaporylie created an issue. See original summary.

zaporylie’s picture

Should be enough

zaporylie’s picture

On the other hand maybe I should limit message variables since modules like dblog stores serialized message_variable array in database.

zaporylie’s picture

eiriksm’s picture

Status: Needs review » Reviewed & tested by the community

Works as expected. Would be ideal to get a test for this, but seems minor enough to just do later.

  • zaporylie committed 6ff45bf on 7.x-1.x
    Issue #2778925 by zaporylie, eiriksm: Log errors even if debug is off
    
zaporylie’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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