diff --git a/logfire/_internal/main.py b/logfire/_internal/main.py index da91f35a6..690a12d5b 100644 --- a/logfire/_internal/main.py +++ b/logfire/_internal/main.py @@ -565,6 +565,8 @@ def log( # We update both because attributes_json_schema_properties looks at `attributes`. attributes = {**attributes, **extra_attrs} else: + # The message has already been filled in, presumably by a logging integration. + # Make sure it's a string. msg = merged_attributes[ATTRIBUTES_MESSAGE_KEY] = str(msg) msg_template = str(msg_template)