Closed (fixed)
Project:
Spam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
5 Aug 2009 at 15:24 UTC
Updated:
20 Aug 2009 at 18:00 UTC
Jump to comment: Most recent file
The following log is confusing:
node_age_spam_filter, retrieved nid () from database
This message should only be displayed if a nid was actually retrieved from the database.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | spam-540830-r1.patch | 2.23 KB | gnassar |
| #3 | spam-540830-r0.patch | 1.89 KB | gnassar |
Comments
Comment #1
jeremy commentedFixed:
http://drupal.org/cvs?commit=247178
Comment #2
gnassar commentedSeems like by the code gets to that point, there should never be a case where a nid cannot be recovered.
Most likely case that would happen is where the content type isn't a comment -- so shouldn't that be checked for first?
The fix I have (and have been testing on my site) does that, as well as more accurately describes the errors at each if, upping severity to SPAM_VERBOSE if something that "shouldn't happen" happens. I'll re-roll that against the current changed HEAD and post in just a minute so you can take a look and see what you think.
Comment #3
gnassar commentedComment #4
gnassar commentedOK, that's what I get for doing stuff so late. That was neither an unified diff nor was it against HEAD. Fixed.
Comment #5
jeremy commentedYes, your fix is _much_ better than my fix. I've applied it locally and tested, it works as designed.
Comment #6
gnassar commentedGreat. I'll commit as soon as I get comments on #532158: Consistent logging across modules to make the patch compliant with the proposed logging settings there.
Comment #7
gnassar commentedCommitted: http://drupal.org/cvs?commit=247568