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

Wrap watchdog comment in if (function_exists)

    Details

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

      Description

      A customer has been having issues with Authorize.net IPNS. Turning off watchdog logging seems to have been the fix - probably because A.net wasn't bootstrapped.

      I'm not 100% sure about that being the problem but there seems to be no downside in taking precautions. compare

      /**

      • @inheritDoc
        */
        public function logger($message)
        Unknown macro: { if (CRM_Core_Config}

      with

      if ($config->userFrameworkLogging) {
      // should call $config->userSystem->logger($message) here - but I got a situation where userSystem was not an object - not sure why
      if ($config->userSystem->is_drupal and function_exists('watchdog'))

      { watchdog('civicrm', '%message', array('%message' => $message), WATCHDOG_DEBUG); }

      }

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: