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()

from __future__ import absolute_import

from cas.config import DEBUG
import logging

LOG = logging.getLogger()
logging.basicConfig()
LOG.setLevel(logging.CRITICAL)

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

if DEBUG:
    enable_debug()

Enable logging by default, but set at a high threshold