forked from golang/exp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slog: TextHandler checks long strings, quotes non-printing runes
TextHandler checks the full length of all strings for whether they need to be quoted, because the cost of doing so (when done quickly) is significantly less than the cost of quoting. Also, it quotes strings containing non-printing characters. Change-Id: I2bb3a66f4fc1f60b0fc58acc53a2f5b973522cc7 Reviewed-on: https://go-review.googlesource.com/c/exp/+/429838 Reviewed-by: Alan Donovan <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]>
- Loading branch information
Showing
2 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters