You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Therefore, no extra operation is needed to support this change.
541
-
# The only thing to consider is the users who have already been using
542
-
# this SDK. If they upgrade the SDK after this change, they will need
543
-
# to readjust their logging collection rules to adapt to the latest
544
-
# output format. Therefore, this change is considered a breaking
545
-
# change and needs to be upgraded at an appropriate time.
546
509
severity_number=std_to_otel(record.levelno)
547
-
ifisinstance(record.msg, str) andrecord.args:
548
-
body=record.msg%record.args
510
+
ifself.formatter:
511
+
body=self.format(record)
549
512
else:
550
-
body=record.msg
513
+
ifisinstance(record.msg, str) andrecord.args:
514
+
body=record.msg%record.args
515
+
else:
516
+
body=record.msg
551
517
552
518
# related to https://github.com/open-telemetry/opentelemetry-python/issues/3548
553
519
# Severity Text = WARN as defined in https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#displaying-severity.
0 commit comments