Avoid writing raw encrypted bytes to terminal debug loggers.
parent
fea39ec83e
commit
a749acf486
|
@ -1001,6 +1001,9 @@ class GPGBase(object):
|
|||
result = self._result_map['crypt'](self)
|
||||
log.debug("Got data '%s' with type '%s'." % (data, type(data)))
|
||||
self._handle_io(args, data, result, passphrase=passphrase, binary=True)
|
||||
# Avoid writing raw encrypted bytes to terminal loggers and breaking
|
||||
# them in that adorable way where they spew hieroglyphics until reset:
|
||||
if armor:
|
||||
log.debug("\n%s" % result.data)
|
||||
|
||||
if output_filename:
|
||||
|
|
Loading…
Reference in New Issue