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

@@ -108,54 +108,81 @@
 r()%0A
-%0Adef enable_debug():%0A    logging.basicConfig()
+logging.basicConfig()%0ALOG.setLevel(logging.CRITICAL)%0A%0Adef enable_debug():
 %0A   

Enable logging by default, but set at a high threshold