aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-03-23 16:32:46 -0300
committerSilvio <s1lv10@uol.com.br>2010-03-23 16:32:46 -0300
commitcdc5e608877b8f3b9143da953ffae45943221fab (patch)
tree349f15ad717d187b9391e36d988be45d58e98661
parenta2343801da56051bc5e9db1a2cdb3c643160ff5e (diff)
downloadmass_image_import-cdc5e608877b8f3b9143da953ffae45943221fab.tar.gz
mass_image_import-cdc5e608877b8f3b9143da953ffae45943221fab.tar.bz2
Log cleanup
-rw-r--r--mass_image_import.module8
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);
}