Closed (duplicate)
Project:
Memcache API and Integration
Version:
7.x-1.0
Component:
memcache.inc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2012 at 08:35 UTC
Updated:
22 Feb 2013 at 16:51 UTC
Hi,
A memcache server can be down. In this case, Drupal admin can see this into Drupal log, it's ok.
But website visitors shouldn't see this message :
User error: Failed to connect to memcache server: ***:11211 in dmemcache_object() (line 415 of /***/all/modules/memcache/dmemcache.inc).
I suggest to only add this message into Drupal log and not displaying it for all users.
Comments
Comment #1
forestmars commentedAs noted elsewhere, we can't log this with watchdog since it happens during bootstrap phase.
For a production server you could use
$conf['error_level'] = 0Comment #2
erikwebb commented#1830496: Better logging and handling of connect errors