提交 943b8384 编写于 作者: 薄皮小笼包 提交者: Gitee

delete concurrent_log_handler module

上级 e431bf04
...@@ -5,7 +5,7 @@ Logging related ...@@ -5,7 +5,7 @@ Logging related
import os import os
import pathlib import pathlib
import logging import logging
from concurrent_log_handler import ConcurrentRotatingFileHandler from logging.handlers import RotatingFileHandler
from packageship import system_config from packageship import system_config
from packageship.libs.configutils.readconfig import ReadConfig from packageship.libs.configutils.readconfig import ReadConfig
...@@ -44,7 +44,7 @@ def setup_log(config=None): ...@@ -44,7 +44,7 @@ def setup_log(config=None):
except FileExistsError: except FileExistsError:
pathlib.Path(path).touch() pathlib.Path(path).touch()
file_log_handler = ConcurrentRotatingFileHandler( file_log_handler = RotatingFileHandler(
path, maxBytes=max_bytes, backupCount=backup_count) path, maxBytes=max_bytes, backupCount=backup_count)
formatter = logging.Formatter( formatter = logging.Formatter(
...@@ -96,7 +96,7 @@ class Log(): ...@@ -96,7 +96,7 @@ class Log():
self.max_bytes = 314572800 self.max_bytes = 314572800
def __init_handler(self): def __init_handler(self):
self.__file_handler = ConcurrentRotatingFileHandler( self.__file_handler = RotatingFileHandler(
self.__path, maxBytes=self.max_bytes, backupCount=self.backup_count, encoding="utf-8") self.__path, maxBytes=self.max_bytes, backupCount=self.backup_count, encoding="utf-8")
def __set_handler(self): def __set_handler(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册