diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2011-01-10 13:21:41 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2011-01-10 13:21:41 -0800 |
commit | b25b205f8e4ac612613be9f4a3d97f9353fd242d (patch) | |
tree | c208de30ce426c8b1b71ab614b9c4b5e058145fa /redis/client/__init__.py | |
parent | f26de8ec0a2ae3dc97fc7be6ce65165a1fa17ca9 (diff) | |
download | redis-py-logging.tar.gz |
split the client into two pieces -- the normal client with no logging, and a debug client with logging.logging
Diffstat (limited to 'redis/client/__init__.py')
-rw-r--r-- | redis/client/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |