? 210876_log_module_install-D6-1.patch
? sites/default/files
? sites/default/settings.php
Index: includes/install.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.inc,v
retrieving revision 1.56.2.4
diff -u -9 -p -r1.56.2.4 install.inc
--- includes/install.inc	16 Feb 2009 10:25:02 -0000	1.56.2.4
+++ includes/install.inc	3 Mar 2010 08:46:11 -0000
@@ -338,18 +338,19 @@ function drupal_install_modules($module_
  * enable them, or to install a number of modules at one time
  * from admin/build/modules.
  */
 function _drupal_install_module($module) {
   if (drupal_get_installed_schema_version($module, TRUE) == SCHEMA_UNINSTALLED) {
     module_load_install($module);
     module_invoke($module, 'install');
     $versions = drupal_get_schema_versions($module);
     drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED);
+    watchdog('system', '%module module installed.', array('%module' => $module), WATCHDOG_INFO);
     return TRUE;
   }
 }
 
 /**
  * Callback to install the system module.
  *
  * Separated from the installation of other modules so core system
  * functions can be made available while other modules are installed.
@@ -375,18 +376,19 @@ function drupal_install_system() {
  */
 function drupal_uninstall_module($module) {
   // First, retrieve all the module's menu paths from db.
   drupal_load('module', $module);
   $paths = module_invoke($module, 'menu');
 
   // Uninstall the module(s).
   module_load_install($module);
   module_invoke($module, 'uninstall');
+  watchdog('system', '%module module uninstalled.', array('%module' => $module), WATCHDOG_INFO);
 
   // Now remove the menu links for all paths declared by this module.
   if (!empty($paths)) {
     $paths = array_keys($paths);
     // Clean out the names of load functions.
     foreach ($paths as $index => $path) {
       $parts = explode('/', $path, MENU_MAX_PARTS);
       foreach ($parts as $k => $part) {
         if (preg_match('/^%[a-z_]*$/', $part)) {
Index: includes/module.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/module.inc,v
retrieving revision 1.115.2.3
diff -u -9 -p -r1.115.2.3 module.inc
--- includes/module.inc	16 Nov 2009 17:17:35 -0000	1.115.2.3
+++ includes/module.inc	3 Mar 2010 08:46:11 -0000
@@ -298,18 +298,19 @@ function module_load_all_includes($type,
 function module_enable($module_list) {
   $invoke_modules = array();
   foreach ($module_list as $module) {
     $existing = db_fetch_object(db_query("SELECT status FROM {system} WHERE type = '%s' AND name = '%s'", 'module', $module));
     if ($existing->status == 0) {
       module_load_install($module);
       db_query("UPDATE {system} SET status = %d, throttle = %d WHERE type = '%s' AND name = '%s'", 1, 0, 'module', $module);
       drupal_load('module', $module);
       $invoke_modules[] = $module;
+      watchdog('system', '%module module enabled.', array('%module' => $module), WATCHDOG_INFO);
     }
   }
 
   if (!empty($invoke_modules)) {
     // Refresh the module list to include the new enabled module.
     module_list(TRUE, FALSE);
     // Force to regenerate the stored list of hook implementations.
     module_implements('', FALSE, TRUE);
   }
@@ -339,18 +340,19 @@ function module_disable($module_list) {
       // Check if node_access table needs rebuilding.
       if (!node_access_needs_rebuild() && module_hook($module, 'node_grants')) {
         node_access_needs_rebuild(TRUE);
       }
 
       module_load_install($module);
       module_invoke($module, 'disable');
       db_query("UPDATE {system} SET status = %d, throttle = %d WHERE type = '%s' AND name = '%s'", 0, 0, 'module', $module);
       $invoke_modules[] = $module;
+      watchdog('system', '%module module disabled.', array('%module' => $module), WATCHDOG_INFO);
     }
   }
 
   if (!empty($invoke_modules)) {
     // Refresh the module list to exclude the disabled modules.
     module_list(TRUE, FALSE);
     // Force to regenerate the stored list of hook implementations.
     module_implements('', FALSE, TRUE);
   }
