[elbe-devel] [PATCH v2 55/75] log: use f-strings
Daniel Braunwarth
daniel at braunwarth.dev
Wed Nov 2 20:14:37 CET 2022
Signed-off-by: Daniel Braunwarth <daniel at braunwarth.dev>
---
elbepack/log.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/log.py b/elbepack/log.py
index b97481d7d..051737c0e 100644
--- a/elbepack/log.py
+++ b/elbepack/log.py
@@ -92,7 +92,7 @@ class ThreadFilter(logging.Filter):
thread = record.thread
retval = record.name in self.allowed and thread == self.thread
if retval and not hasattr(record, 'context'):
- record.context = "[%s] " % record.levelname
+ record.context = f"[{record.levelname}]"
return retval
--
2.38.1
More information about the elbe-devel
mailing list