diff options
author | Silvio <s1lv10@uol.com.br> | 2010-03-23 16:32:46 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-03-23 16:32:46 -0300 |
commit | cdc5e608877b8f3b9143da953ffae45943221fab (patch) | |
tree | 349f15ad717d187b9391e36d988be45d58e98661 | |
parent | a2343801da56051bc5e9db1a2cdb3c643160ff5e (diff) | |
download | mass_image_import-cdc5e608877b8f3b9143da953ffae45943221fab.tar.gz mass_image_import-cdc5e608877b8f3b9143da953ffae45943221fab.tar.bz2 |
Log cleanup
-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); } |