summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorKakysha <ezhikvdele@gmail.com>2013-10-28 20:14:08 +0100
committerKakysha <ezhikvdele@gmail.com>2013-10-28 20:14:08 +0100
commit8f3f1f9a6dd7c4feb77ffc040b37799fc101e470 (patch)
tree56a4af0539b3bc7b6ac5f7c76a0d3076d9acc255 /system
parentffe2130b00bffb2f43debf82c34586642c831b0b (diff)
Code cleanup
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 0bbd5b05c..194745fe0 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -203,10 +203,12 @@ class CI_Cache_redis extends CI_Driver
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 @@ class CI_Cache_redis extends CI_Driver
}
catch (RedisException $e)
{
- log_message('debug','Redis connection refused. ' . $e->getMessage());
+ log_message('debug','Cache: Redis connection refused ('.$e->getMessage().')');
return FALSE;
}