# Path: kano/logging.py
# class lazy_logger:
# class loader:
#     def __getattr__(self, name):
#     def __init__(self, old_mod):
#     def __getattr__(self, name):
# def log_excepthook(exc_class, exc_value, tb):
# 
# Path: kano/profiling.py
# CONF_FILE = '/etc/kano-profiling.conf'


import os
import sys
import yaml
import cProfile
from kano.logging import logger
from kano.profiling import CONF_FILE
                        myProfile.clear()
                    point_current = name
                    myProfile.enable()
                else:
                    if point_current != name:
                        logger.error(
                            'Can\'t stop point "{0}" since a profiling '
                            'session for "{1}" is being run'
                            .format(name, point_current)
                        )
                    else:
                        myProfile.disable()
                        # Check if the statfile location in specified
                        if ct['python']['statfile']:
                            try:
                                myProfile.dump_stats(ct['python']['statfile'])
                            except IOError as err:
                                if err.errno == 2:
                                    logger.error(
                                        'Path to "{}" probably does not exist'
                                        .format(ct['python']['statfile'])
                                    )
                                else:
                                    logger.error(
                                        'dump_stats IOError: errno:{0}: {1} '
                                        .format(err.errno, err.strerror)
                                    )
                        else:
                            logger.error(
                                'No statfile entry in profiling conf file "{}"'

# Path: kano/logging.py
# class lazy_logger:
# class loader:
#     def __getattr__(self, name):
#     def __init__(self, old_mod):
#     def __getattr__(self, name):
# def log_excepthook(exc_class, exc_value, tb):
# 
# Path: kano/profiling.py
# CONF_FILE = '/etc/kano-profiling.conf'


# Path: kano/profiling_late.py
import os
import sys
import yaml
import cProfile
from kano.logging import logger
from kano.profiling import CONF_FILE

                        myProfile.clear()
                    point_current = name
                    myProfile.enable()
                else:
                    if point_current != name:
                        logger.error(
                            'Can\'t stop point "{0}" since a profiling '
                            'session for "{1}" is being run'
                            .format(name, point_current)
                        )
                    else:
                        myProfile.disable()
                        # Check if the statfile location in specified
                        if ct['python']['statfile']:
                            try:
                                myProfile.dump_stats(ct['python']['statfile'])
                            except IOError as err:
                                if err.errno == 2:
                                    logger.error(
                                        'Path to "{}" probably does not exist'
                                        .format(ct['python']['statfile'])
                                    )
                                else:
                                    logger.error(
                                        'dump_stats IOError: errno:{0}: {1} '
                                        .format(err.errno, err.strerror)
                                    )
                        else:
                            logger.error(
                                'No statfile entry in profiling conf file "{}"'

                                .format(CONF_FILE)