from __future__ import absolute_import

from cas.config import DEBUG
import logging

LOG = logging.getLogger()

if DEBUG:
    logging.basicConfig()
    LOG.setLevel(logging.DEBUG)

from __future__ import absolute_import

from cas.config import DEBUG
import logging

LOG = logging.getLogger()

def enable_debug():
    logging.basicConfig()
    LOG.setLevel(logging.DEBUG)

if DEBUG:
    enable_debug()

Allow other parts of the lib to enable debugging
Allow other parts of the lib to enable debugging
