import os
import json
import logging
import logging.config


def setup_logging(log_path, settings_path="logging.json", default_level=logging.INFO):
    """Setup logging configuration"""
    path = settings_path
    if os.path.exists(path):
        with open(path, 'rt') as f:
            config = json.load(f)
        config['handlers']['main']['filename'] = log_path
        logging.config.dictConfig(config)
    else:
        logging.basicConfig(level=default_level)

import os
import json
import logging
import logging.config


def setup_logging(settings_path="logging.json", default_level=logging.INFO):
    """Setup logging configuration"""
    path = settings_path
    if os.path.exists(path):
        with open(path, 'rt') as f:
            config = json.load(f)
        logging.config.dictConfig(config)
    else:
        logging.basicConfig(level=default_level)

Remove kludge from setup_logging as no longer necessary
Remove kludge from setup_logging as no longer necessary
