From c53a4796fe84b4cc3925576f2ba54a95535919cb Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Fri, 3 May 2024 13:30:01 -0700 Subject: [PATCH] Resolves new warning --- gunicorn.conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index e3951ac5f..70c5707e1 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -37,11 +37,11 @@ def worker_int(worker): id2name = {th.ident: th.name for th in threading.enumerate()} code = [] for threadId, stack in sys._current_frames().items(): - code.append("\n# Thread: %s(%d)" % (id2name.get(threadId, ""), threadId)) + code.append(f"\n# Thread: {id2name.get(threadId, '')}({threadId})") for filename, lineno, name, line in traceback.extract_stack(stack): - code.append('File: "%s", line %d, in %s' % (filename, lineno, name)) + code.append(f'File: "{filename}", line {lineno}, in {name}') if line: - code.append(" %s" % (line.strip())) + code.append(f" {line.strip()}") worker.log.debug("\n".join(code))