Skip to content

Commit

Permalink
Delay creating clade.log file
Browse files Browse the repository at this point in the history
  • Loading branch information
17451k committed Jul 29, 2021
1 parent 26676f1 commit 3a61e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clade/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_logger(name, with_name=True, conf=None):
log_file = os.path.abspath(log_file)
os.makedirs(os.path.dirname(log_file), exist_ok=True)

file_handler = logging.FileHandler(log_file)
file_handler = logging.FileHandler(log_file, delay=True)
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
except (PermissionError, OSError):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def finalize_options(self):

setuptools.setup(
name="clade",
version="3.4.6",
version="3.4.7",
author="Ilya Shchepetkov",
author_email="[email protected]",
url="https://github.com/17451k/clade",
Expand Down

0 comments on commit 3a61e33

Please sign in to comment.