-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test proxy logs - sanitizer info (#9164)
* draft testing logs for sanitizerAdd ToString, logging, and SanitizerId; update commentsAdded a ToString method to RecordEntry for string representation.Introduced logging in RecordSession to track sanitizer changes.Added SanitizerId to RecordedTestSanitizer for unique identification.Updated RegisteredSanitizer constructor to set SanitizerId.Corrected copyright comment in RequestOrResponse.cs.Added necessary using directives to RecordEntry.cs. * Enhance logging and string representation in RecordEntry * simplification * log message improve * unneeded pkg * Update tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/RecordSession.cs Co-authored-by: Scott Beddall <[email protected]> * Update tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/RecordSession.cs Co-authored-by: Scott Beddall <[email protected]> * address feedback, modifications are more granular, logs under Debug flag * sets flags only under Debug flag for fewer computations * remove ToString impl * Environment.NewLine, null checks for body, fix Logging tests * fix build and if-check indentation * Address feedback * fix logging test * improve the logging experience * Use StringBuilder * address feedback; logging modifications when entries are removed * remove modified flag tracker logic in favour of tracking them at the time of sanitization * format * default getter and setter back * fix cloning body bug * log improvements and comments * simplifications * fix tests * revert linebreak change --------- Co-authored-by: Scott Beddall <[email protected]>
- Loading branch information
1 parent
bf7c4cf
commit 266508f
Showing
5 changed files
with
232 additions
and
8 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
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