mirror of
https://github.com/gryf/wicd.git
synced 2025-12-27 17:02:30 +01:00
Mask out sensitive information in the logfile
This commit is contained in:
@@ -120,8 +120,13 @@ class ConfigManager(RawConfigParser):
|
|||||||
ret = to_unicode(ret)
|
ret = to_unicode(ret)
|
||||||
if default:
|
if default:
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print ''.join(['found ', option, ' in configuration ',
|
# mask out sensitive information
|
||||||
str(ret)])
|
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 ',
|
||||||
|
str(ret)])
|
||||||
else:
|
else:
|
||||||
if default != "__None__":
|
if default != "__None__":
|
||||||
print 'did not find %s in configuration, setting default %s' % (option, str(default))
|
print 'did not find %s in configuration, setting default %s' % (option, str(default))
|
||||||
|
|||||||
Reference in New Issue
Block a user