import logging
from os import path
from cs251tk.common import chdir
from cs251tk.student.markdownify import markdownify


def record(student, specs, to_record, basedir, debug):
    recordings = []
    if not to_record:
        return recordings

    with chdir(student):
        for one_to_record in to_record:
            logging.debug('recording', one_to_record)
            if path.exists(one_to_record):
                with chdir(one_to_record):
                    recording = markdownify(one_to_record, student, specs[one_to_record], basedir, debug)
            else:
                recording = {
                    'spec': one_to_record,
                    'student': student,
                    'warnings': {'no submission': True},
                }

            recordings.append(recording)

    return recordings

@@ -344,11 +344,20 @@
 ding
-', 
+ %7B%7D'.format(
 one_
@@ -366,16 +366,17 @@
 _record)
+)
 %0A       

fix a logging error in record.py