From 538659138777c11022ebf15e90d7993d039db13e Mon Sep 17 00:00:00 2001 From: David Vogt Date: Fri, 10 Jul 2020 14:39:24 +0200 Subject: [PATCH] fix(log): use fstring to log fstring message The log message didn't get rendered properly due to missing fstring markup. --- caluma/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caluma/utils.py b/caluma/utils.py index 63e82aec3..5aceed8d3 100644 --- a/caluma/utils.py +++ b/caluma/utils.py @@ -73,7 +73,7 @@ def fix_foreign_key_types(apps, connection): cursor = connection.cursor() type_, length = target_dbtype new_type = f"{type_}({length})" - log.warning("Correcting data type of {field} to {new_type}") + log.warning(f"Correcting data type of {field} to {new_type}") # not using the parametrized syntax here (sql, params) as # we do NOT want escaping here cursor.execute(