Skip to content

Commit

Permalink
Merge branch 'master' into ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu authored Sep 26, 2023
2 parents fc2758b + cff00ad commit 0b4ca42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vorta/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def init_logger(background=False):

# create handlers
fh = TimedRotatingFileHandler(config.LOG_DIR / 'vorta.log', when='d', interval=1, backupCount=5)
# ensure ".log" suffix
fh.namer = lambda log_name: log_name.replace(".log", "") + ".log"
fh.setLevel(logging.DEBUG)
fh.setFormatter(formatter)
logger.addHandler(fh)
Expand Down

0 comments on commit 0b4ca42

Please sign in to comment.