summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2014-09-19 15:26:36 +0000
committerSam Thursfield <sam@afuera.me.uk>2014-09-19 15:29:44 +0000
commitf05a161053f68244894fb0db73041ed5909dcbc0 (patch)
treea99cf3e573441e97f11879e471144663c47f1ad7
parent39991810f14b836e99d184f554d0354a96eaa0c7 (diff)
downloaddefinitions-f05a161053f68244894fb0db73041ed5909dcbc0.tar.gz
Prevent cliapp from logging env. variables with 'PASSWORD' in their name
The upstream cliapp project is not interested in this functionality right now.
-rw-r--r--writeexts.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/writeexts.py b/writeexts.py
index 5102bfdc..0fd0ad7b 100644
--- a/writeexts.py
+++ b/writeexts.py
@@ -113,6 +113,10 @@ class WriteExtension(cliapp.Application):
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)
+ def log_config(self):
+ with morphlib.util.hide_password_environment_variables(os.environ):
+ cliapp.Application.log_config(self)
+
def process_args(self, args):
raise NotImplementedError()