We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc51c25 commit 91a2026Copy full SHA for 91a2026
opentelemetry-exporter-gcp-logging/src/opentelemetry/exporter/cloud_logging/__init__.py
@@ -188,9 +188,7 @@ def _write_log_entries(self, log_entries: list[LogEntry]):
188
msg_size = LogEntry.pb(entry).ByteSize()
189
if msg_size > DEFAULT_MAX_ENTRY_SIZE:
190
logging.warning(
191
- "Cannot write log that is {} bytes which exceeds Cloud Logging's maximum limit of {}.".format(
192
- msg_size, DEFAULT_MAX_ENTRY_SIZE
193
- )
+ f"Cannot write log that is {msg_size} bytes which exceeds Cloud Logging's maximum limit of {DEFAULT_MAX_ENTRY_SIZE}."
194
)
195
continue
196
if msg_size + batch_byte_size > DEFAULT_MAX_REQUEST_SIZE:
0 commit comments