diff --git a/forumspam.sh b/forumspam.sh
index 5732ccf..75e4b68 100755
--- a/forumspam.sh
+++ b/forumspam.sh
@@ -19,7 +19,7 @@ if ! grep -q 'yes' $repl; then
fi
freq=`grep '' $repl | sed 's///; s!!!'`
if [ "$freq" -ge 1 ]; then
- if ufw deny from $ip >/dev/null; then
+ if ufw deny from $ip >/dev/null 2>>$logf; then
echo `date` blocked ip $ip with freq $freq >> $logf
rm $repl
exit 0