-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: several logging improvements
Replace the file prefix with a logging sequence number: the file name was not very useful and mostly messed with indentation. The sequence number, OTOH, allows for more easily pinpointing the position in the log and is quite handy for setting conditional break points. (Developer can set a ctx.logID == n condition on a breakpoint after the log to stop at that particular point in evaluation). The Logf function now uses a strings.Builder. This should be faster, but also results in nicer code. Change the nesting around the Unify and Start Process headers. This improves legibility of logs Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Ie6d67902e0c13831d390b9cd1ac097c9d007fda9 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207550 Reviewed-by: Matthew Sackman <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
4 changed files
with
26 additions
and
23 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
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