Correct Redis connection troubleshooting
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 8daed8b..b0315a3 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -164,8 +164,7 @@
 	{
 		if (extension_loaded('redis'))
 		{
-			$this->_setup_redis();
-			return TRUE;
+			return $this->_setup_redis();
 		}
 		else
 		{
@@ -206,18 +205,26 @@
 				$v = $this->_redis->connect($config['socket']);
 			} else // tcp socket
 			{
-				$this->_redis->connect($config['host'], $config['port'], $config['timeout']);
+				$v = $this->_redis->connect($config['host'], $config['port'], $config['timeout']);
+			}
+			if (!$v)
+			{
+				log_message('debug','Redis connection refused. Check the config.');
+				return FALSE;
 			}
 		}
 		catch (RedisException $e)
 		{
-			show_error('Redis connection refused. ' . $e->getMessage());
+			log_message('debug','Redis connection refused. ' . $e->getMessage());
+			return FALSE;
 		}
 
 		if (isset($config['password']))
 		{
 			$this->_redis->auth($config['password']);
 		}
+		
+		return TRUE;
 	}
 
 	// ------------------------------------------------------------------------