In dmemcache.inc file, $memcache_debug_file is used logging filename in watchdog instead of $memcache_debug_log.

    if (file_put_contents($memcache_debug_log, $debug_log, FILE_APPEND) === FALSE) {
      // This can lead to a lot of watchdog entries...
      register_shutdown_function('watchdog', 'memcache', 'Unable to write to debug log at !debug_file: !debug_log.', array('!debug_file' => $memcache_debug_file, '!debug_log' => $debug_log), WATCHDOG_ERROR);
    }

should be replaced by

    if (file_put_contents($memcache_debug_log, $debug_log, FILE_APPEND) === FALSE) {
      // This can lead to a lot of watchdog entries...
      register_shutdown_function('watchdog', 'memcache', 'Unable to write to debug log at !debug_file: !debug_log.', array('!debug_file' => $memcache_debug_log, '!debug_log' => $debug_log), WATCHDOG_ERROR);
    }
CommentFileSizeAuthor
#2 3013021-memcache-fix-logs.patch937 bytesGoZ
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GoZ created an issue. See original summary.

GoZ’s picture

Status: Active » Needs review
FileSize
937 bytes

  • Jeremy committed 6bbe0e1 on 7.x-1.x authored by GoZ
    Issue #3013021 by GoZ: Wrong variable used logging filename in...
Jeremy’s picture

Status: Needs review » Fixed

Good catch, thanks for the patch! Committed.

Status: Fixed » Closed (fixed)

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