From b25b205f8e4ac612613be9f4a3d97f9353fd242d Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Mon, 10 Jan 2011 13:21:41 -0800 Subject: split the client into two pieces -- the normal client with no logging, and a debug client with logging. --- redis/client/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 redis/client/__init__.py (limited to 'redis/client/__init__.py') diff --git a/redis/client/__init__.py b/redis/client/__init__.py new file mode 100644 index 0000000..f0a7907 --- /dev/null +++ b/redis/client/__init__.py @@ -0,0 +1,9 @@ +import logging + +from redis.client.base import * + +log = logging.getLogger("redis") +if log.isEnabledFor(logging.DEBUG): + from redis.client.debug import DebugClient as Redis + from redis.client.debug import DebugConnection as Connection + from redis.client.debug import DebugPipline as Pipeline -- cgit v1.2.1