Skip to content

Commit d8661a4

Browse files
author
Arne Caratti
committed
ran black
1 parent 8023384 commit d8661a4

File tree

1 file changed

+3
-1
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal

1 file changed

+3
-1
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,9 @@ def __init__(
423423
def _get_attributes(record: logging.LogRecord) -> Attributes:
424424
private_record_attrs = ("args", "msg", "stack_info", "exc_info")
425425
attributes = {
426-
k: v for k, v in vars(record).items() if k not in private_record_attrs and v is not None
426+
k: v
427+
for k, v in vars(record).items()
428+
if k not in private_record_attrs and v is not None
427429
}
428430
if record.exc_info:
429431
exc_type = ""

0 commit comments

Comments
 (0)