Skip to content

Commit

Permalink
[优化]MakeFileHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
longfengpili committed Nov 14, 2024
1 parent 35e213d commit b0780da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydbapi/conf/myhandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: longfengpili
# @Date: 2023-06-02 15:27:41
# @Last Modified by: longfengpili
# @Last Modified time: 2023-07-27 15:34:11
# @Last Modified time: 2024-11-13 11:24:13
# @github: https://github.com/longfengpili


Expand All @@ -24,6 +24,6 @@ def mklogdir(path):


class MakeFileHandler(logging.handlers.TimedRotatingFileHandler):
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False, atTime=None):
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=True, utc=False, atTime=None):
mklogdir(os.path.dirname(filename))
super(MakeFileHandler, self).__init__(filename, when, interval, backupCount, encoding, delay, utc, atTime)

0 comments on commit b0780da

Please sign in to comment.