Skip to content

Commit e0905b4

Browse files
committed
convert paths to str before logging them
1 parent dfd5159 commit e0905b4

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

client/certgrinder/certgrinder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,15 +1025,15 @@ def run_post_renew_hook(hook: Sequence[Path | str]) -> bool:
10251025
10261026
Returns: True if exit code was 0, False otherwise.
10271027
"""
1028-
logger.info(f"Running post renew hook: {hook}")
1028+
logger.info(f"Running post renew hook: {hook!s}")
10291029
start = datetime.datetime.now(tz=datetime.timezone.utc)
10301030
p = subprocess.Popen(hook) # noqa: S603
10311031
runtime = datetime.datetime.now(tz=datetime.timezone.utc) - start
10321032
exitcode = p.wait()
10331033
if exitcode != 0:
1034-
logger.error(f"Got exit code {exitcode} when running post_renew_hook {hook} - hook runtime was {runtime}")
1034+
logger.error(f"Got exit code {exitcode} when running post_renew_hook {hook!s} - hook runtime was {runtime}")
10351035
return False
1036-
logger.info(f"Post renew hook {hook} ended with exit code 0, good. Hook runtime was {runtime}")
1036+
logger.info(f"Post renew hook {hook!s} ended with exit code 0, good. Hook runtime was {runtime}")
10371037
return True
10381038

10391039
# SPKI METHODS

client/man/certgrinder.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "CERTGRINDER" "8" "May 19, 2025" "" "Certgrinder"
30+
.TH "CERTGRINDER" "8" "May 20, 2025" "" "Certgrinder"
3131
.SH NAME
3232
certgrinder \- Manpage for certgrinder
3333
.sp

docs/certgrinder-changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ All notable changes to ``certgrinder`` will be documented in this file.
1010
This project adheres to `Semantic Versioning <http://semver.org/>`__.
1111

1212

13+
Unreleased
14+
----------
15+
16+
Fixed
17+
~~~~~~
18+
19+
- Convert pathlib.Path paths to str before logging
20+
21+
1322
v0.21.0 (19-may-2025)
1423
---------------------
1524

server/man/certgrinderd.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "CERTGRINDERD" "8" "May 19, 2025" "" "Certgrinder"
30+
.TH "CERTGRINDERD" "8" "May 20, 2025" "" "Certgrinder"
3131
.SH NAME
3232
certgrinderd \- Manpage for certgrinderd
3333
.sp

0 commit comments

Comments
 (0)