diff --git a/dr_botzo/markov/admin.py b/dr_botzo/markov/admin.py index 2d2b33e..bc3c259 100644 --- a/dr_botzo/markov/admin.py +++ b/dr_botzo/markov/admin.py @@ -37,6 +37,7 @@ def import_file(request): whos = [] for line in log_file: + log.debug(line) (timestamp, who, what) = line.decode('utf-8').split('\t', 2) if who in ('-->', '<--', '--', ' *'): @@ -50,6 +51,7 @@ def import_file(request): # this is a line we probably care about now what = [x for x in what.rstrip().split(' ') if x not in strips] markovlib.learn_line(' '.join(what), context) + log.debug("learned") log.debug(set(whos)) form = LogUploadForm()