db_maintenance_log is not being honored

andyl56 - November 11, 2008 - 13:17
Project:DB Maintenance
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

There is an extra logging statement that is being run that does not check the status of the db_maintenance_log configuration option.

watchdog('db_maintenance', 'Optimized @table table in @db database.', array('@db' => $db_name, '@table' => $table_name), WATCHDOG_DEBUG);

This can be completely removed because a few lines down there's another watchdog that does check this config option that logs the same information as a single message.

AttachmentSize
remove_duplicate_debug.patch544 bytes

#1

deekayen - April 17, 2009 - 15:28
Version:6.x-1.1» 6.x-2.0-beta1
Status:needs review» fixed

Notice that line is at the debug level and the other one is at the info level. I wrapped the debug one in the same if statement as the other.

#2

System Message - May 1, 2009 - 15:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.