Improved logging for emails

Removed private data from debug export
This commit is contained in:
Ozzieisaacs
2021-01-03 19:27:24 +01:00
parent 760fbbb357
commit a659f2e49d
4 changed files with 18 additions and 5 deletions

View File

@ -44,7 +44,7 @@ class EmailBase:
def send(self, strg):
"""Send `strg' to the server."""
log.debug('send: %r', strg[:300])
log.debug_no_auth('send: {}'.format(strg[:300]))
if hasattr(self, 'sock') and self.sock:
try:
if self.transferSize: