Skip to content

Commit

Permalink
replaced flash message with error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop authored and kushaldas committed Oct 5, 2020
1 parent b3d6366 commit 1a814d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions securedrop/journalist_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,8 @@ def bulk_delete(
num=len(items_selected)),
len(items_selected)), "notification")
if deletion_errors > 0:
flash(ngettext("An error occured during deletion - contact an administrator",
"{num} errors occured during deletion - contact an administrator.".format(
num=deletion_errors),
deletion_errors), "error")
current_app.logger.error("Disconnected submission entries (%d) were detected",
deletion_errors)
return redirect(url_for('col.col', filesystem_id=filesystem_id))


Expand Down

0 comments on commit 1a814d8

Please sign in to comment.