-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: implement succinct output for SearchOptions.String (#719)
I am often reading the output of String in traces and logs, and it is really hard to parse since there are many fields and most are unset. This is a quality of life improvement so it is much easier to scan the output. For example the default zoekt-webserver struct's string output goes from a 456 byte string to zoekt.SearchOptions{ ShardMaxMatchCount=100000 TotalMaxMatchCount=1000000 MaxWallTime=10s } Test Plan: go test. The unit tests ensure I cover every field now and in the future when fields are added.
- Loading branch information
1 parent
b35d8a2
commit 7dcc797
Showing
2 changed files
with
139 additions
and
3 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