1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Certbot-specific temp log dir prefix (#9406)

Fixes #9405.
This commit is contained in:
osirisinferi
2022-09-16 15:34:02 +02:00
committed by GitHub
parent 0326cbf95e
commit d214da191d
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
### Changed
*
* If Certbot exits before setting up its usual log files, the temporary directory created to save logging information will begin with the name `certbot-log-` rather than a generic name. This should not be considered a [stable aspect of Certbot](https://certbot.eff.org/docs/compatibility.html) and may change again in the future.
### Fixed

View File

@@ -264,7 +264,7 @@ class TempHandler(logging.StreamHandler):
"""
def __init__(self) -> None:
self._workdir = tempfile.mkdtemp()
self._workdir = tempfile.mkdtemp(prefix="certbot-log-")
self.path = os.path.join(self._workdir, 'log')
stream = util.safe_open(self.path, mode='w', chmod=0o600)
super().__init__(stream)