CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • [Solved] Debugging options are independent
Pages: [1]

Author Topic: [Solved] Debugging options are independent  (Read 483 times)

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
[Solved] Debugging options are independent
February 18, 2015, 01:07:56 am
The 'Debugging and Error Handling' settings page has the 'Enable debugging', 'Enable Drupal Watchdog Logging' and 'Enable backtrace' options.

These can be enabled independently, ie: debugging can be disabled, but backtrace can be enabled.

The documentation (http://wiki.civicrm.org/confluence/display/CRMDOC/Debugging+for+developers) suggested that you must enable debugging to access the backtrace. I am just about to update the documentation to say they are independent.

The UI in CiviCRM says 'Set this value to Yes if you want CiviCRM error/debugging messages to also appear in Drupal error logs'.

I am about to put up an issue with a PR to remove the 'also', since this could imply that it depends on whether or not debugging is enabled.

I suppose this opens up the question about whether all these settings should be independent of each other? It makes sense that we can log errors to watchdog without having to enable debugging; so the PR also moves the Drupal debugging option to the top of the list. This keeps the two 'non-production' options together, so that the backtrace could be more easily made 'dependent' on debugging being enabled; if people feel that should be the case.

IMHO it should be fine to keep them independent, as long as the help text and documentation makes this clear.
« Last Edit: February 23, 2015, 03:08:31 am by John.K »

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Re: Debugging options are independent
February 18, 2015, 01:54:43 am
Issue: https://issues.civicrm.org/jira/browse/CRM-15985
PR: https://github.com/civicrm/civicrm-core/pull/5190

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Re: Debugging options are independent
February 18, 2015, 10:18:16 am
PR merged, many thanks. Documentation page also updated.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • [Solved] Debugging options are independent

This forum was archived on 2017-11-26.