Create soft dependency on logbook.

main
Vincent Driessen 13 years ago
parent cd31f6aba9
commit 98ffcd8e05

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

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

Loading…
Cancel
Save