def write_debug(self, data):
        data = self.force_unicode(data)
        self.debug_log.write(unicode(data))
        self.debug_log.flush()