From 92a7813c40e0162adb6963a6bf87e4f8247642f9 Mon Sep 17 00:00:00 2001
From: Tore Brede <Tore.Brede@uib.no>
Date: Tue, 9 Nov 2021 12:45:44 +0100
Subject: [PATCH] GREG-94: Using lazy formatting in logging functions

---
 gregui/mailutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gregui/mailutils.py b/gregui/mailutils.py
index 435224cf..1079aeba 100644
--- a/gregui/mailutils.py
+++ b/gregui/mailutils.py
@@ -81,7 +81,7 @@ def send_invite_mail(link: InvitationLink) -> Optional[str]:
     sponsor = link.invitation.role.sponsor
     if not sponsor:
         logger.warning(
-            "Unable to determine sponsor for invitation link with ID: {link.id}"
+            "Unable to determine sponsor for invitation link with ID: {%s}" % link.id
         )
         return None
 
-- 
GitLab