diff --git a/dmemcache.inc b/dmemcache.inc
index 5b0629a..8885ced 100644
--- a/dmemcache.inc
+++ b/dmemcache.inc
@@ -403,16 +403,18 @@ function dmemcache_object($bin = NULL, $flush = FALSE) {
           }
 
           if (!$init) {
-            // Ensure we use an available t() function.
-            $t = get_t();
-            $error_msg = $t(
-              'Failed to connect to memcache server: %server',
-              array('%server' => $s)
-            );
-            // We can't use watchdog because this happens in a bootstrap phase
-            // where watchdog is non-functional. Thus use trigger_error() to
-            // start drupal_error_handler().
-            trigger_error($error_msg, E_USER_ERROR);
+            if (varaible_get('display_memcache_connection_error', TRUE)) {
+              // Ensure we use an available t() function.
+              $t = get_t();
+              $error_msg = $t(
+                'Failed to connect to memcache server: %server',
+                array('%server' => $s)
+              );
+              // We can't use watchdog because this happens in a bootstrap phase
+              // where watchdog is non-functional. Thus use trigger_error() to
+              // start drupal_error_handler().
+              trigger_error($error_msg, E_USER_ERROR);
+            }
             $failed_connection_cache[$s] = FALSE;
           }
         }
