Skip to content

Commit

Permalink
Merge pull request #11 from blablacar/add-log-failure
Browse files Browse the repository at this point in the history
Added context in log
  • Loading branch information
edouarddurieux authored Oct 4, 2018
2 parents ad6ae19 + f713407 commit 21e5b28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Blablacar/Redis/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ public function connect()
$this->redis = new \Redis();
$this->redis->connect($this->host, $this->port);
if (null !== $this->base) {
$this->redis->select($this->base);
try {
$this->redis->select($this->base);
} catch (\RedisException $e) {
throw new \RedisException(sprintf('%s (%s:%d)', $e->getMessage(), $this->host, $this->port), $e->getCode(), $e);
}
}
}

Expand Down

0 comments on commit 21e5b28

Please sign in to comment.