debug log for missing score

This commit is contained in:
Evan Prodromou 2012-03-07 09:04:55 -06:00
parent c6c879bdb4
commit 0b87e76945
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ class ActivitySpamPlugin extends Plugin
$score = Spam_score::staticGet('notice_id', $notice->id);
if (empty($score)) {
$this->debug("No score for notice " . $notice->id);
// XXX: show a question-mark or something
} else if ($score->is_spam) {
$form = new TrainHamForm($out, $notice);