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

Debug improvement - only use one log

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      So, the mildly annoying thing when you turn on civicrm_debug_query_log is it creates 2 log files - the reason is that the log file name is based on an encryption of the dsn & the userFrameworkResourceURL

      CRM_Core_Error::createDebugLogger()

      $fileName = "{$config->configAndLogDir}CiviCRM." . $comp . md5($config->dsn . $config->userFrameworkResourceURL) . '.log';

      BUT the userFrameworkURL is not set @ the start

      Shall we just make it

      $fileName = "{$config->configAndLogDir}CiviCRM." . $comp . md5($config->dsn ) . '.log';

      ?

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: