Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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);
}
Comment | File | Size | Author |
---|---|---|---|
#2 | 3013021-memcache-fix-logs.patch | 937 bytes | GoZ |
Comments
Comment #2
GoZ CreditAttribution: GoZ at Iosan, Barbe-Rousse commentedComment #4
Jeremy CreditAttribution: Jeremy at Tag1 Consulting commentedGood catch, thanks for the patch! Committed.