[#5102] verbose logging option in add_artifacts
diff --git a/Allura/allura/tasks/index_tasks.py b/Allura/allura/tasks/index_tasks.py
index 84c7abe..8010b6e 100644
--- a/Allura/allura/tasks/index_tasks.py
+++ b/Allura/allura/tasks/index_tasks.py
@@ -10,7 +10,7 @@
 log = logging.getLogger(__name__)
 
 @task
-def add_artifacts(ref_ids, update_solr=True, update_refs=True):
+def add_artifacts(ref_ids, update_solr=True, update_refs=True, verbose=False):
     '''Add the referenced artifacts to SOLR and shortlinks'''
     from allura import model as M
     from allura.lib.search import find_shortlinks, solarize
@@ -33,6 +33,8 @@
             except Exception:
                 log.error('Error indexing artifact %s', ref._id)
                 exceptions.append(sys.exc_info())
+        if verbose:
+            log.info('add_artifacts sending %s to solr' % len(solr_updates))
         g.solr.add(solr_updates)
 
     if len(exceptions) == 1: