Merge branch 'develop' of github.com:kakysha/CodeIgniter into develop
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 0bbd5b0..194745f 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -203,10 +203,12 @@
if ($config['socket_type'] === 'unix')
{
$success = $this->_redis->connect($config['socket']);
- } else // tcp socket
+ }
+ else // tcp socket
{
$success = $this->_redis->connect($config['host'], $config['port'], $config['timeout']);
}
+
if ( ! $success)
{
log_message('debug','Redis connection refused. Check the config.');
@@ -215,7 +217,7 @@
}
catch (RedisException $e)
{
- log_message('debug','Redis connection refused. ' . $e->getMessage());
+ log_message('debug','Cache: Redis connection refused ('.$e->getMessage().')');
return FALSE;
}