summaryrefslogtreecommitdiff
path: root/morphlib/writeexts.py
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
commitef3a9aa55f70d6c56a6e94be5e15b54decae1a74 (patch)
treeefa3c8c7c10be3596f0b1ae4531841e4779e7e25 /morphlib/writeexts.py
parent359248a35948d2060dba97ef7073c155e3b9c1bb (diff)
downloadmorph-ef3a9aa55f70d6c56a6e94be5e15b54decae1a74.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.
Diffstat (limited to 'morphlib/writeexts.py')
-rw-r--r--morphlib/writeexts.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py
index 5102bfdc..0fd0ad7b 100644
--- a/morphlib/writeexts.py
+++ b/morphlib/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()