Fixed default logging level in setup_loghandlers.

main
Selwin Ong 11 years ago
parent 92fb787a69
commit b828078dde

@ -14,8 +14,8 @@ except ImportError:
from rq.utils import ColorizingStreamHandler
def setup_loghandlers(level=None):
logger = logging.getLogger()
def setup_loghandlers(level='INFO'):
logger = logging.getLogger('rq.worker')
if not logger.handlers:
logger.setLevel(level)
formatter = logging.Formatter(fmt='%(asctime)s %(message)s',

@ -17,8 +17,6 @@ from rq.scripts import (add_standard_arguments, read_config_file,
setup_default_arguments, setup_redis)
from rq.utils import import_attribute
logger = logging.getLogger(__name__)
def parse_args():
parser = argparse.ArgumentParser(description='Starts an RQ worker.')

Loading…
Cancel
Save