Update config.py to redact delete: line from webhooks

This commit is contained in:
bullmoose20 2024-01-21 12:48:46 -05:00 committed by GitHub
parent 30577af0e4
commit 57a0bcfb3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,7 @@ class ConfigFile:
with open(self.config_path, encoding="utf-8") as fp: with open(self.config_path, encoding="utf-8") as fp:
logger.separator("Redacted Config", space=False, border=False, debug=True) logger.separator("Redacted Config", space=False, border=False, debug=True)
for line in fp.readlines(): for line in fp.readlines():
logger.debug(re.sub(r"(token|client.*|url|api_*key|secret|error|run_start|run_end|version|changes|username|password): .+", r"\1: (redacted)", line.strip("\r\n"))) logger.debug(re.sub(r"(token|client.*|url|api_*key|secret|error|delete|run_start|run_end|version|changes|username|password): .+", r"\1: (redacted)", line.strip("\r\n")))
logger.debug("") logger.debug("")
self.data = YAML(self.config_path).data self.data = YAML(self.config_path).data