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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| remove_duplicate_debug.patch | 544 bytes |

#1
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
Automatically closed -- issue fixed for 2 weeks with no activity.