diff options
-rw-r--r-- | mass_image_import.module | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mass_image_import.module b/mass_image_import.module index 7f0c0f6..15a4c7c 100644 --- a/mass_image_import.module +++ b/mass_image_import.module @@ -71,6 +71,9 @@ function mass_image_import_form_submit($form, &$form_state) { */ function mass_image_import_batch(&$context) { if (empty($context['sandbox'])) { + // Log + watchdog('image', 'Starting mass image import.'); + $files = mass_image_import_get_files(); $context['sandbox']['images'] = $files; $context['sandbox']['progress'] = 0; @@ -140,9 +143,6 @@ function mass_image_import_file($file) { $dirpath = variable_get('image_import_path', ''); $origname = $file->basename; - // Debug - watchdog('bcc', 'Importing '. $origname); - // Assembly import data $file_metadata_modules = module_implements('file_metadata'); @@ -194,5 +194,7 @@ function mass_image_import_batch_finished($success, $results, $operations) { $message = t('Finished with an error.'); } + // Log + watchdog('image', 'Finished mass image import.'); drupal_set_message($message); } |