Skip to content

Commit

Permalink
log base directory path, not full path
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier authored and redshiftzero committed May 12, 2020
1 parent e51eef5 commit 9449bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/api_jobs/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _decrypt(self,
db_object.download_error = None
mark_as_decrypted(
type(db_object), db_object.uuid, session, original_filename=original_filename)
logger.info(f'File decrypted to {filepath}')
logger.info(f'File decrypted to {os.path.dirname(filepath)}')
except CryptoError as e:
mark_as_decrypted(type(db_object), db_object.uuid, session, is_decrypted=False)
download_error = session.query(DownloadError).filter_by(
Expand Down

0 comments on commit 9449bcc

Please sign in to comment.