util.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:intel-manager-for-lustre 作者: intel-hpdd 项目源码 文件源码
def __init__(self, label = ""):
        # Avoid importing this at module scope in order
        # to co-habit with chroma_settings()
        from django.db import connection
        self.connection = connection

        self.label = label
        self.logger.disabled = not self.enabled
        if self.enabled and not len(self.logger.handlers):
            self.logger.setLevel(logging.DEBUG)
            self.logger.addHandler(logging.FileHandler('dbperf.log'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号