You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by samuelvinay91 September 27, 2022
Is there any way we can hide the headers in reporting or as part of logs something similar to RestAssured 'blacklistheaders'
The text was updated successfully, but these errors were encountered:
Adding a variable set - blackListedHeaders in the constructor of logger
Adding a method - addBlackListHeader & removeBlackListHeaderisHeaderBlacklisted which would accept a string to add/remove/check blacklisted headers.
sanitizeHeaders - which would check the object if it has headers && if the headers has any of the added blackListedHeaders -> and sanitise the object with [BLACKLISTED] value
use sanitizeHeaders in all the log methods - trace, debug, info, warn, error
Discussed in #208
Originally posted by samuelvinay91 September 27, 2022
Is there any way we can hide the headers in reporting or as part of logs something similar to RestAssured 'blacklistheaders'
The text was updated successfully, but these errors were encountered: