mirror of
https://github.com/gryf/wicd.git
synced 2025-12-30 10:22:31 +01:00
Mask out sensitive information in the logfile
This commit is contained in:
@@ -120,6 +120,11 @@ class ConfigManager(RawConfigParser):
|
|||||||
ret = to_unicode(ret)
|
ret = to_unicode(ret)
|
||||||
if default:
|
if default:
|
||||||
if self.debug:
|
if self.debug:
|
||||||
|
# mask out sensitive information
|
||||||
|
if option in ['apsk', 'password', 'identity', 'private_key', \
|
||||||
|
'private_key_passwd', 'key', 'passphrase']:
|
||||||
|
print ''.join(['found ', option, ' in configuration *****'])
|
||||||
|
else:
|
||||||
print ''.join(['found ', option, ' in configuration ',
|
print ''.join(['found ', option, ' in configuration ',
|
||||||
str(ret)])
|
str(ret)])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user