Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18091

Constant CIVICRM_DEBUG_LOG_QUERY equates TRUE to 'backtrace'

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.2
    • Fix Version/s: 4.7.3
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      It is possible to get a log of all queries run in CiviCRM by defining the constant

      CIVICRM_DEBUG_LOG_QUERY

      ie.

      define('CIVICRM_DEBUG_LOG_QUERY', 1);

      If you define it as

      define('CIVICRM_DEBUG_LOG_QUERY', 'backtrace');

      You get a backtrace output.

      However the code, somewhat unintuitively, currently interprets

      define('CIVICRM_DEBUG_LOG_QUERY', 1);

      as 'backtrace' rather than TRUE

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: