diff --git a/web/app/corpora/events.py b/web/app/corpora/events.py
index 82a66d17ee21ed92674675d200fafe278be6d810..23f11521c44232bf42228ba273179932981a68a3 100644
--- a/web/app/corpora/events.py
+++ b/web/app/corpora/events.py
@@ -8,6 +8,7 @@ from ..events import connected_sessions
 from ..models import Corpus, User
 import cqi
 import math
+import logging
 
 
 '''
@@ -124,6 +125,10 @@ def corpus_analysis_query(query):
     chunk_start = 0
     context = 50
     progress = 0
+    # for attr in corpus.structural_attributes.list():
+    #    if attr.attrs['name'] == 'text':
+    #        text_attr = attr
+    # logging.warning(results.fdist_1(15, results.attrs['fields']['match'], text_attr))
     client.status = 'running'
     while chunk_start <= results.attrs['size']:
         if client.status == 'abort':