[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-09-16 15:40:43 +00:00
parent 807af6b679
commit b79d396fa0
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ class LoggingPlugin:
# File logging.
self.log_file_level = get_log_level_for_setting(
config, "log_file_level", "log_level"
)
)
log_file = get_option_ini(config, "log_file") or os.devnull
if log_file != os.devnull:
directory = os.path.dirname(os.path.abspath(log_file))