Skip to content

Commit

Permalink
fix(log): use fstring to log fstring message
Browse files Browse the repository at this point in the history
The log message didn't get rendered properly due to missing fstring markup.
  • Loading branch information
winged committed Jul 10, 2020
1 parent 3d168e0 commit 5386591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caluma/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5386591

Please sign in to comment.