Fix #999564 (calibre show username/password as clear text in logs)

This commit is contained in:
Kovid Goyal 2012-05-15 15:40:35 +05:30
parent d9b93800a5
commit 8eebae3bf5

View File

@ -889,7 +889,10 @@ OptionRecommendation(name='search_replace',
self.log.debug('Resolved conversion options')
try:
self.log.debug('calibre version:', __version__)
self.log.debug(pprint.pformat(self.opts.__dict__))
odict = dict(self.opts.__dict__)
for x in ('username', 'password'):
odict.pop(x, None)
self.log.debug(pprint.pformat(odict))
except:
self.log.exception('Failed to get resolved conversion options')