'Format routing table into string for log dumps.'

def format(self, indent=0, indent_first=True):

    active = self.consume_from
    if (not active):
        return u''
    info = [QUEUE_FORMAT.strip().format(q) for (_, q) in sorted(items(active))]
    if indent_first:
        return textindent(u'\n'.join(info), indent)
    return ((info[0] + u'\n') + textindent(u'\n'.join(info[1:]), indent))
