databricks-sdk-go icon indicating copy to clipboard operation
databricks-sdk-go copied to clipboard

Fix: Replace non-ASCII and non-printable characters with dots in logger

Open pietern opened this issue 6 months ago • 2 comments
trafficstars

What changes are proposed in this pull request?

Never log non-ASCII or non-printable characters in log output.

Request logs may include binary data if it isn't JSON. This can affect the terminal state.

Motivated by https://github.com/databricks/cli/pull/2804.

How is this tested?

Unit test that confirms that non-printable ASCII and UTF-8 characters are replaced with a ..

pietern avatar May 09 '25 09:05 pietern