Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
watchdog.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2006 at 06:57 UTC
Updated:
12 Sep 2006 at 10:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commented+1 from me.
tested on a fresh cvs install, and it works as advertised, and revealed a bug in the advanced search form, which i've submitted a fix for.
slightly off topic: is the
$_SESSION['watchdog_overview_filter']stuff a bug or a feature?i found it a bit counter-intuitive that after visiting other sections of the site and coming back to admin/logs/watchdog the filter was whatever i last used. doesn't play nicely with multiple tabs either. just my 2 cents.
Comment #2
dries commentedFrom a storage point of view, we could store these events in separate tables. A little bit more insight in the design decision.
The advantage would be (i) improved performance and (ii) less data duplication.
I choose not to do so for two reasons: (i) lack of time (sorry) and (ii) if we want to add a 'detailed view' to let people 'drill down' or investigate the results more closely, we'd still need the keep track of all the data.
For example, if we want to see the different referrers for 404s, or what users searched for certain keywords from what source pages, we would still have to keep track of all this data in the exact same way we are doing now in the watchdog table.
It's nice to see what pages don't exist, but it's also important to figure out what pages to fix. Right now, that information is still accessible in the watchdog table.
Comment #3
Anonymous (not verified) commentedshould we add an index on the watchdog table type column for the new query in watchdog_top()?
Comment #4
killes@www.drop.org commented@Dries: diff -u :p
@justin: adding an index to the watchdig table will slow down performance a lot. This is a table which has many inserts but few views, inserts woudl require the index to be rebuilt. However, it just so happens that I already prepared a patch which would allow us to add an index because it keeps the watchdog table small. :)
see http://drupal.org/node/78503
Comment #5
dries commentedAnyone? (I probably reviewed several patches of you, now review mine. ;-))
Comment #6
webchickNo longer applied. Here is a re-roll. Seems like a good addition.
It might be useful for the message to link to the last instance in the watchdog table where this happened (admin/logs/event/##), or to add another column with this information. This way, things like referrer could be used to further track down *why* the error was happening, rather than just being informed that it was.
Comment #7
Steven commentedCool, the watchdog could use some tweaks indeed... some comments:
Comment #8
dries commented* Linking to the last event is not helpful. Eventually, we need an event browser for that. At least, that is what other systems provide. That will also fix Steven's remark: "They should be part of the same".
* I think it makes sense to focus on 404, 403 and search. These are the most useful, especially 404s and search. It wouldn't work to sort by other events. There would be no value.
I think we just need to add some help here, commit it, and refine it incrementally.
Comment #9
dries commentedCommitted a modified version to CVS HEAD.
Comment #10
dries commentedComment #11
(not verified) commented