Skip to content

Commit 075e089

Browse files
committed
[Bug Fix] Return error message when body has no length when logging error
1 parent 0bc2d75 commit 075e089

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Bug Fixes
88
- Improving the error message that is shown when the unsupported `dbutils.credentials.getServiceCredentialsProvider` method is used. This method can only be used inside of a notebook.
9+
- Return error message when body has no length when logging error.
910

1011
### Documentation
1112

databricks/sdk/logger/round_trip_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _recursive_marshal(self, v: Any, budget: int) -> Any:
111111

112112
def _redacted_dump(self, prefix: str, body: str) -> str:
113113
if len(body) == 0:
114-
return ""
114+
return "body has no length"
115115
try:
116116
# Unmarshal body into primitive types.
117117
tmp = json.loads(body)

0 commit comments

Comments
 (0)