I usually have dblog module turned off. When you do this, the watchdog table isn't there. I noticed using drush it'll throw an exception saying:

Base table or view not found: 1146 Table [error]
'new.watchdog' doesn't exist: TRUNCATE {watchdog};

Maybe a check can be added for this service to see if the table exists before trying to truncate it.

Nice module BTW!

Comments

rferguson created an issue. See original summary.

valentine94’s picture

Assigned: Unassigned » valentine94
Status: Active » Needs work

Hi rferguson,

Thanks for report I'll take a look asap.

Regards, Valentine

nancydru’s picture

nancydru’s picture

Status: Needs work » Active
nancydru’s picture

Status: Active » Needs review
StatusFileSize
new584 bytes

Here's a patch against the 7.x branch.

nancydru’s picture

StatusFileSize
new584 bytes

Proper patch name so it doesn't try to test against 8.x.

nancydru’s picture

StatusFileSize
new584 bytes

Trying again with the name

  • NancyDru committed 420e0de on 7.x-1.x
    Issue #2810655 by NancyDru: Add a check for the watchdog table before...
nancydru’s picture

Status: Needs review » Patch (to be ported)

Needs to be ported to 8.x-1.x

valentine94’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new606 bytes

OK, here is a patch for D8

nancydru’s picture

If you've tested it, go ahead and commit it.

Status: Needs review » Needs work

The last submitted patch, 10: cleaner-check_for_watchdog_table-2810655-10.patch, failed testing. View results

  • Valentine94 committed dcc2e32 on 8.x-1.x
    Issue #2810655 by NancyDru, Valentine94: Add a check for the watchdog...
valentine94’s picture

Status: Needs work » Fixed

Mark as fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.