Create soft dependency on logbook.

main
Vincent Driessen 13 years ago
parent cd31f6aba9
commit 98ffcd8e05

@ -1,4 +1,7 @@
try:
from logbook import Logger
except ImportError:
from logging import Logger
from .worker import Worker
def run_daemon(queue_keys, rv_ttl=500):

@ -3,7 +3,10 @@ import os
import random
import time
import procname
try:
from logbook import Logger
except ImportError:
from logging import Logger
from pickle import loads, dumps
from .queue import Queue
from .proxy import conn

Loading…
Cancel
Save